Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[recommenders-dev] Sorter for Collection

Hello,

what’s the best way to build a sorter for a collection.

I have this requirement: 

List with some Strings, which I want to sort: 
List<String> dayList = ImmutableList.of(„Tue“, „Thu“, „Fri“, „Mon“, „Wed“); 

I want to sort the days in this order: Mon, Tue, Wed, Thu, Fri not alphabetical. 

Regards,
Akif

Back to the top