Take the array index of each item, add a random number between 0 and distance-1, and re-sort by the new value. You’ll end up with everything being shuffled by a distance of [-distance/2] to [distance/2].
Anyone else having a problem with the script today? It stopped working for me this morning. I’m using Chrome 101 on Windows 10 and TamperMonkey v4.16.1. I also have WaniKani Open Framework, Double-Check (both load before Reorder Omega), and Pitch Accent (loads after). All scripts are up to date, and there are no errors in the browser console.
I still get the Preset drop-down list on the Lessons pages, but picking any of the selections does nothing. I can also access the options through the WaniKani menu, but again, when I go to the Lessons page, none of my options has any effect–I’m seeing the default WK ordering. The only thing I did any different today from any other is I changed my WK batch size from 5 to 3. But even after changing it back, it still doesn’t work.
I’ve also noticed that Reorder Omega works fine for Reviews, just not for Lessons.
I just tried it myself and it seems to work fine. Perhaps there might be an issue with your presets? Have you tried a simple preset like just sorting vocab to be first to see if that works?
Yeah, I’ve tried selecting all of the others (defaults?): None, Speed Demon, and Sort by type. None does anything. I can’t explain it. Literally every other aspect of the script appears to be working except for sorting lessons. I can even open the settings on the Lessons page and change them, it just doesn’t do anything. And Reviews and Self Study still work fine.
The only thing I did any differently today was changing my lesson batch size. I did that before starting today’s lessons and noticed they weren’t ordered according to my Custom present. When I did yesterday’s lesson, they were.
Is there any way that could affect the script? Should I try uninstalling and reinstalling it?
Those three presets may very well (correctly) result in the same queue if you have radicals to do. “None” goes with WK’s ordering which I believe favors current level radicals if you don’t have any previous level items left. “Speed Demon” favors current level radicals over anything else. “Sort by type” favors all radicals. This is why I asked if you had tried creating a different preset, because that makes it easier to determine if the result really is different from the intended result
You know what? I’m a big ol’ dummy. That’s what I am. The kanji I was expecting to see are locked because I haven’t passed the radicals. Boy am I an idiot.
Really sorry, @Kumirei. Your script remains ace. Thanks for your help and all your hard work on it. I really find it invaluable.
I’ve tried it on Safari and Chrome. In either browser, when I start to do lessons the screen blanks completely. If I have a preset, it flashes the lesson up, then the window quickly goes blank. If I don’t have a preset and I set an order with a lesson showing, the lesson vanishes.
I suspect this has something to do with the lesson modifications they’re currently working on that maybe only affect the lower levels so far?
Thanks for the report! I’ll have a look at it in a couple of days, hopefully. My brother is getting married tomorrow, and then I will be travelling to my dad’s wedding right after, so I am a bit busy
Is it possible to create a larger lesson batch size (i.e. larger than WaniKani’s default max of 10)/is this possible for any script?
Is it possible to reorder lessons in such a way as to make sure you get, say 3 kanji and four vocab, but also make sure that the kanji and vocab don’t come adjacent to each other? It makes me uncomfortable seeing all the purples and pinks mushed together against their will at the bottom of the screen.
I mean I want to do kanji/vocab/kanji/vocab/kanji etc. or just have them assorted randomly. Just so they aren’t all grouped together, i.e. all vocab, then all kanji or something.
If random sorting is good enough, you could just do a preset with “Shuffle” as the only action.
Because you asked about batches larger than 10, I’m assuming you want to alternate kan/voc/kan/voc and have one quiz for the entire session? I don’t think Reorder Omega limits the number of actions that can be used in a preset…so you could make a preset with:
Filter – Kanji
Filter – First (1)
Freeze & Restore
Filter – Vocab
Filter – First (1)
Freeze & Restore
repeat these steps until the maximum batch size you’d want to see
you can omit the final “Freeze and Restore” to force the session to end after your quiz whether or not you still have more unlocked lessons.
Someone might offer a better option, but this should work with the current versions of Reorder Omega + Lesson Filter.
That is exactly what I was thinking as well. I don’t think there is any better way to do it. @kokopelli121123 If you do this, you should know that it is possible to copy and paste actions using CTRL+C and CTRL+V. That should speed it up a bit
Hmmm, I’m not sure. It was one of the last things I discussed with Javi before his last day, and I don’t know if it made it into the code. But it should be easy to check. Just need to re-find the nextQuestion function in the code again, and see if it counts the number of items missing from the ‘memo’ object.
I must admit I find this script a tad confusing and way to many posts here to read them all
So just a quick question - tomorrow I have a bunch of radicals and kanji which are in 4th stage apprentice. I want to do those first to speed up the leveling process, then the remaining reviews.
Do I simply select the ‘speed demon’ filter for this? Do I need to refresh something after changing the filter?
…what the heck is going on, why does the reorder one not work anymore and then I’m told to get this one… this one is confusing as hell and won’t do what I’m telling it to do, it’s got a mind of it’s own.
What the heck, I’m getting so sick of this, why is there not just one built in already so we don’t have to play these games with these scripts that constantly break!?