Java JTable: Setting a primary column to always sort by first
问题 I'm using a JTable with say 3 columns, displaying information about files and folders: Col1: Either "file" or "folder" (String) Col2: Name of the file or folder (String) Col3: Creation date (Timstamp) I can easily sort the table by any column. But I'm not able to achieve the following desired behavior: No matter what column header the user clicks, folders should always display before files. So basically sorting by Col1 in any order other than descending should not be possible. Also, if sorted