I understand the ASCII sort order is included in TreeMap , but something is wrong with it . The problem is , that program running in IDE , and everything is right , I check it 10 times; But compile say me that I am stupid , help me to understand what I am doing wrong;