added sorting algorithm for both sort by time added and by title(alphabetic)
lattice_cms.js