Fix sort for list