Improve setting the default / initial sort of a Table Its hard / impossible to set the initial sort of a Table. Lets make it easier and better. let table = new Table(identifier, ...); if (!table.sortColumnIdentifier) { table.sortOrder = ...; table.sortColumnIdentifier = ...; } The initialLayout of the table will ensure it displays appropriately.
Created attachment 322980 [details] [PATCH] Proposed Fix I like this approach for setting up the default sort. Its easy to find and not too invasive in code. It probably depends on ordering (ensure columns are added before setting the default sort) but thats a pattern I'm already following and encouraging.
Comment on attachment 322980 [details] [PATCH] Proposed Fix r=me
Comment on attachment 322980 [details] [PATCH] Proposed Fix Clearing flags on attachment: 322980 Committed r222983: <http://trac.webkit.org/changeset/222983>
All reviewed patches have been landed. Closing bug.
<rdar://problem/34857354>