Simpelst way to sort a grid by date with user generated date string?

Which is simpelst to sort a grid by date, where the data string is user generated?
The date column is generated by a string. The string is user defined - no milli sec. So the displayed grid order is not correct due the orginal data.
Due the API I see some methods/classes - e.g. GridSortOrder. But I am looking for a simple example.

With best reagards
Peter

You may want to try using the
setComparator
method of the date column in your Grid. This way you can compare the date values however you like.

myGrid.getColumn("myColumnId").setComparator(...)

That however will only work for an InMemoryDataProvider. For a BackEndDataProvider you will have to do this provider-specific, e.g. construct a proper SQL query comparison stanza, or the like.