I am trying to sort the list items using String.localecompare() function. My items list is given below.