fix ajax sort