Fix calls to sortBy revealed by HHVM tests.