Sort the collection instead of moving DOM elements

Sort the collection based on completion status and modified date/time