fix sortOrder return value