SitePen/dgrid — pull request #31 by sfoster (2011-10-19 11:00:13+00:00)
Title: Ensure sort details included in the sortOptions are retained in the grid.sortOrder array property

This is re: https://github.com/SitePen/dgrid/issues/20

I'm not 100% sure if this is /the/ issue, but it is /an/ issue: if a call to setQuery is made with a queryOptions pbag that includes a sort property, that should replace the existing sortOrder on the grid/list. That way, when renderQuery calls the query callback, the sortOrder array is up to date.

This pull request includes the change in OnDemandList and the test_onDemand.html page.