update sort function to sort ASC & DSC strings and numbers