JSCORE-36: improved sorting performance