beforeColumnSort bug

Tags: #<Tag:0x00007efc6549d118>

I have been testing before Column sort hook and noticed a bug I would like fixed or explained why it is what it is.
Demo: https://jsfiddle.net/sem2f9rq/2/
Method of reproduction:
Step1: Delete Row with the ID 4
Step2: Sort and check if the alert given was the ID before it filters
You should notice that when its gives the wrong id when you sort from descending to undefined

Thanks for sharing @alan.barclay

I think that your investigation is a missing puzzle for the issue I posted yesterday in our internal Issue Board, it states:

demo: http://jsfiddle.net/o3zoa31d/3/

scenario

  1. Use red ‘x’ sign to hide last row (row index 11)
  2. You hid last row (with B12 value)
  3. Sort table by B column
  4. There’s a B12 value cell and B9 value (row index 8) is gone

also check

  1. Hide all rows between 0 and 11 index (1-11 rows)
  2. Sort table by column B few times
  3. There’s a B1/B9 pair (again the row with index 8) of values for asc and desc order and B1/B12 if there’s no sorting.

Your Demo for some reason will not work? I click the run button and nothing happens.

Hi @alan.barclay
I can see that https://jquery.com had some connection problems and that’s why the demo was unavailable - had problems to run without (in this example) https://code.jquery.com/jquery-latest.min.js file

Now it’s working fine.

thank you i’ll test it now.

update: issue no #47

This was fixed in v1.7.4. Demo: http://jsfiddle.net/ev5frdz8/

If it does not work please open a new topic.