changes for sorting a to z and z to a aplhabetical order