Added advnaced sorting functionality
Working on adding browse options to templates