I'd like to sort an ArrayList according to my logic:
ArrayList<String> cards = new ArrayList<>(Arrays.asList("K","A","7","Q","6","J","T"));
// desired result: [6, 7, T, J, Q, K, A]
So like poker card this is the ascending order: 2,3,4,5,6,7,8,9,T,J,Q,K,A
How could I achieve it?