sort the flattened ring for Wordy command