Fixed sort_by capital test.