Added sorting functionality to table

Using dynatable library (based on query)