bayleaf
bayleaf

Reputation: 47

Default sorting in ember-models-table

I am using ember-models-table (https://github.com/onechiporenko/ember-models-table) and I'd like to initially display the table with the records sorted by one particular column. I can't seem to find a parameter for this in the spec. How do I do it?

Upvotes: 2

Views: 598

Answers (1)

user2461022
user2461022

Reputation: 86

"propertyName": "EmployeeName", "title": "EmployeeName",
"sortDirection": "asc", "sortPrecedence": 1

Use sortDirection and sortPrecedence to sort a particular column.

Upvotes: 1

Related Questions