Adding sorting alphabetically ordering inside a table of items

Hi all,

I have to add a sorting option to a table in purchase receipt. It should sort alphabetically(A-Z) a particular row based on item_code. How can i achieve this ? Please help me. Thanks.


I am attaching the screenshot of the table which i want to add a sorting option.

2 Likes

Hi!

Did you find any solution?

no. I used javascript to sort. You can also try.

Any chance you could share your solution? That would help others as well.

http://jsfiddle.net/g9eL6768/2/

Try this it will sort both ascending and descending order on clicking the table header

2 Likes

Thanks.

1 Like