updated list sort to sort li elements