Sorting the data (Both ascending and descending) based on the field using HTML,JavaScript and Cascading Style Sheet