Completed sort

Works for tags.