This works fine and saves fine and all is well in dgrid land. However,
when I sort, it sorts by the integer stored in the database and thereby
also in the dstore. How can I override this behavior and have it sort by
the displayed value?
It would seem that I am "doing it wrong", but how would one then reverse
the above and have the data saved in the database correctly if the
dstore holds a text value rather than the primary key (int)?
I have read about overriding the sort function. This seems like a good
idea except that I always want to sort by what is displayed. It's not
some isolated case. The user expects what s/he sees to be sorted.
Question #2: Why are numbers sorted like strings? 100 comes before 11.
Anyway to "fix" that?