Wanikani Reorder Ultimate [old version, not working]

after reading this Reorder by SRS tweak: /t/Review-order-by-SRS-level-Extension-to-alucardecks-review-order/4431/1

is it possible to find the place in the script that would make this “pseudo-code” work here?