WIP: sorting of the list