added a sort feature to list, does not reset the keys.