on ‎2022 Sep 15 8:21 PM
Hi Experts,
I am trying to sort a table column that have blank values in few rows. Standard sorting functionality considers those blank values as well and brings those rows to top while sorting ascending.
Is there a possibility to sort columns only based on values present by skipping those blank value column rows through standard way ? If yes, can you help by pointing how to achieve ?
Thanks in advance.
Request clarification before answering.
You can create your own sorter
var oSorter = new Sorter( ... )
You can then create your own oSorter.fnCompare function where you set empty strings to be of "high value" relative to other strings. This will place them at the bottom (as opposed to the top)
If you want to eliminate the blank values altogether you can cast your current object list to one where blanks are ignored.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.