added sorting to the datagrid. Server side sorting is also supported.