improved sorting performance