Simple sort in table without data source...

I have simple table. It reads data without dynamic setting data source, simple from list like {{a,b,c,d}, {a,b,c,d}…}
How setup the sort of table with clicking of headers data column? I wrote the applescript names in “Sort Key” field, linked the columns with script. The triangles in headers displays, but sort is not working.

Please, help…

Can you post some of your code?

As soon as you set the content of a table view, a corresponding data source is automatically created for you.

It’s fairly straight forward to create sorting, something like:


	set contents of contents of myTable to {{"a", "b", "c", "d"}, {"e", "f", "g", "h"}}
	tell data source of myTable
		set sort column to data column 1
		set sorted to true
	end tell

Tom
BareFeet