Z
Z
zlFast2016-05-04 09:41:09
JavaScript
zlFast, 2016-05-04 09:41:09

How to properly sort data in ngTable columns?

Yes, I prescribe
<td data-title="'name'" sortable="'firstName'">
But the firstName data can be stored in the table both with a small letter and with a capital letter, and then it sorts incorrectly. How to make it sort correctly regardless of the case of characters?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2016-05-04
@zlFast

Add an additional field in which to put firstName.toLowerCase()
and sort by it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question