Sort datasets so they are displayed in a consistent order