Fix list sorting.