fix ajax sort & make search case insensitive