The attachmentcount column is actually sorted this way: 5, 4, 3, 20, 2, 1. 20 is treated as 2. Another example is: 9,5, 4, 100, 1 … again 100 is treated as 1.
The attachment account value is number. I also use parseInt to force the column value to integer, but still doesn’t help.
Please advise how to fix this?