I have implemented the ng2 smart table grid
for listing
https://akveo.github.io/ng2-smart-table/#/documentation
Here I want to integrate the sorting for 2 columns. For this I used the code
storeid: {
title: 'Store #',
sort: true
},
But this is not numeric sorting. It sorts as 1,10,11...
instead of 1,2,3...
Is there any example for comparefunction
for the particular column.
Please help me.