fixed use of deprecated Order enum for sorting