Implement a comparator that 1) checks whether both inputs are numbers; 2) if they are parse them as numbers and sort them as such; 3) if they are not compare them by natural string order
↧