Rewritten Sort feature, but still broken

Working on it