fix sorting jquery classes