almost sort filtering with ajax