remove ordinal for java backend sorts

@yilongli please review