CC can sort on a custom column that is marked as being in the grouping drawer, so the first step is to follow the instructions in the FAQ
How do I add my custom columns to the Grouping drawer. The column will be automatically added to the sort menu.
If you do not want to see the column in the grouping drawer, go to Settings / Grouping Drawer / Select groups to show and uncheck the group(s) you do not want to see.