added server-side sorting to main grid