# \[Userscript\]: Reorder Ultimate 2 \[newest\]

**URL:** <https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152>\
**Category:** API And Third-Party Apps\
**Created:** [February 14, 2019, 8:52pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152 "2019-02-14T20:52:39Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![cubix](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/cubix/32/271008_2.png) [@cubix](https://community.wanikani.com/u/cubix)\
**Post date:** [May 13, 2020, 9:58pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/165 "2020-05-13T21:58:52Z")

</div>

Exact same issue for me as well

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [May 13, 2020, 9:59pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/166 "2020-05-13T21:59:44Z")

</div>

> [@SgtAdamCDN](#):
>
> doesn’t save [my settings] anymore

As it turns out, this is due to a change in Wanikani yesterday. They changed their use of jStorage so that is uses sessionStorage instead of localStorage. That causes everything in jStorage to be lost outside of the current session.

I’ll have a fix in a few minutes.

@SgtAdamCDN @sornvru @39dearMIKU @cubix

---

<div class="post-metadata">

**Author:** ![sornvru](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/sornvru/32/187517_2.png) [@sornvru](https://community.wanikani.com/u/sornvru)\
**Post date:** [May 13, 2020, 10:54pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/167 "2020-05-13T22:54:36Z")

</div>

I had a feeling it would be something like that. Thanks for the update.

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [May 13, 2020, 11:24pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/168 "2020-05-13T23:24:05Z")

</div>

The issue of lost settings is fixed now. Please update.

While fixing it, I found a few other ‘issues’ in the code (mostly the bad use of duplicate ID tags), which I cleaned up. I _hope_ I didn’t break anything in the process. This is not actually my script, so I’m only partly familiar with the code. But I did some testing, and it all seemed to work okay. Please post here if you find additional problems. Thanks!

---

<div class="post-metadata">

**Author:** ![\_Mashira](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/_mashira/32/261028_2.png) [@\_Mashira](https://community.wanikani.com/u/_Mashira)\
**Post date:** [May 14, 2020, 6:06pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/169 "2020-05-14T18:06:20Z")

</div>

![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/0/0/2/002ff3fb14a5a199f727a36a269d7849429eddb0.png)

Hi it’s me again x’D

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [May 14, 2020, 6:48pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/170 "2020-05-14T18:48:34Z")

</div>

Woah, what the heck??  
Try turning off other scripts first to see if that fixes it. I know there has been a lot of style scripts coming out lately, and sometimes they’ve affected other scripts.

---

<div class="post-metadata">

**Author:** ![\_Mashira](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/_mashira/32/261028_2.png) [@\_Mashira](https://community.wanikani.com/u/_Mashira)\
**Post date:** [May 14, 2020, 6:54pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/171 "2020-05-14T18:54:48Z")

</div>

Yup I’ve tried that. Also reinstalling 😕  
It appeared after my “problem” with the timeline. I have no idea what I did. Only deleted cookies and turn stuff off and on again.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 14, 2020, 6:57pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/172 "2020-05-14T18:57:36Z")

</div>

Did you also try disabling the theme? Kind of looks like Breeze Dark?

---

<div class="post-metadata">

**Author:** ![\_Mashira](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/_mashira/32/261028_2.png) [@\_Mashira](https://community.wanikani.com/u/_Mashira)\
**Post date:** [May 14, 2020, 7:00pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/173 "2020-05-14T19:00:48Z")

</div>

Yup it’s Breeze Dark T\_T  
MY EYES!!! S-s-s-so bright…  
Thanks again! Is there a way I can fix this?

 ![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/7/4/4/744f0f53dd2721c28d9a5507d51952794fc60e69.png)

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 14, 2020, 7:03pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/174 "2020-05-14T19:03:38Z")

</div>

Might have better luck asking someone over on the Breeze Dark thread. I don’t have any lessons so I can’t have a look at it myself

---

<div class="post-metadata">

**Author:** ![\_Mashira](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/_mashira/32/261028_2.png) [@\_Mashira](https://community.wanikani.com/u/_Mashira)\
**Post date:** [May 15, 2020, 8:52am UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/175 "2020-05-15T08:52:09Z")

</div>

Fixed!

I deleted row 1890. It fixed the problem, for as far I can see.  
Have no knowledge of coding, searched for “reorder”.

![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/c/5/a/c5aa1bfafaec3771cd4651c74ae4fc27787d9dfd.png)

![image](https://global.discourse-cdn.com/wanikanicommunity/original/4X/a/3/8/a381ff50219e0db9ec09c32e558a1e4865ac1dd9.png)

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 15, 2020, 9:59am UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/176 "2020-05-15T09:59:54Z")

</div>

By the looks of it just removing the width property should suffice

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [May 15, 2020, 10:26am UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/177 "2020-05-15T10:26:31Z")

</div>

This makes sense…  
A few days ago, when I updated Reorder to not use jStorage after a WK change, I noticed that the original author was using duplicate tag IDs, (e.g. `#reorder`), which is technically a violation of HTML, though browsers won’t usually have a problem with it.

My fix was to add #reorder\_ultimate to the top-level element, and changed the multiple instances of `#reorder` to `.reorder`. So, Breeze Dark would need to change the CSS rules accordingly.

I also changed `#sort-types` to `.sort-types` and `#sort-levels` to `.sort-levels`.

(Reorder could really use a rewrite, but it’s way too low of a priority 😓 )

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 15, 2020, 10:33am UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/178 "2020-05-15T10:33:45Z")

</div>

> [@rfindley](#):
>
> browsers won’t usually have a problem with it.

This is off topic but BunPro features some very questionable use of IDs. They seem to use them kind of like classes and custom attributes. It’s kind of crazy, each time I open the developer console it gets flooded with literally thousands of duplicate ID warnings, to the extent that it freezes for a while. In the case of BP it’s definitely a problem ![sweat_smile](https://global.discourse-cdn.com/wanikanicommunity/original/4X/2/9/1/291be8cf3b48bfb9f831b78ceeb57f3c3a1263bc.png)

> [@rfindley](#):
>
> My fix was to add #reorder\_ultimate to the top-level element, and changed the multiple instances of `#reorder` to `.reorder` . So, Breeze Dark would need to change the CSS rules accordingly.

Sounds like @_Mashira could just change out `id^` for `class^`, then, and keep their styling

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [May 15, 2020, 10:36am UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/179 "2020-05-15T10:36:45Z")

</div>

> [@Kumirei](#):
>
> each time I open the developer console it gets flooded with literally thousands of duplicate ID warnings, to the extent that it freezes for a while. In the case of BP

Good to know. I was just about to re-add the IDs (while leaving the classes)… but if it generates warnings, I think I’ll leave it corrected. My “Programmer’s OCD” didn’t want me to put the IDs back in anyway 🙂

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 15, 2020, 10:38am UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/180 "2020-05-15T10:38:12Z")

</div>

I’m sure a couple of warnings wouldn’t hurt ![wink](https://global.discourse-cdn.com/wanikanicommunity/original/4X/1/9/f/19f1e20c1fff4dc675805b54e627bebe6ff979c0.png), but I’m all for proper form

---

<div class="post-metadata">

**Author:** ![Liras](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/liras/32/41190_2.png) [@Liras](https://community.wanikani.com/u/Liras)\
**Post date:** [May 15, 2020, 3:45pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/181 "2020-05-15T15:45:46Z")

</div>

> [@Kumirei](#):
>
> Sounds like @_Mashira could just change out `id^` for `class` , then, and keep their styling

Yep, that worked as well.

---

<div class="post-metadata">

**Author:** ![Kumirei](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/kumirei/32/480522_2.png) [@Kumirei](https://community.wanikani.com/u/Kumirei)\
**Post date:** [May 15, 2020, 3:51pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/182 "2020-05-15T15:51:58Z")

</div>

> [@rfindley](#):
>
> (Reorder could really use a rewrite, but it’s way too low of a priority ![sweat](https://global.discourse-cdn.com/wanikanicommunity/original/4X/e/9/d/e9d5f2b8bb1f0568c7c7637ae2cb05e8d1968347.png) )

I recently wrote a static reorder script (always filters and reorders in the same way) for myself, so I have some understanding now of how this all works. If I have some extra time this summer I might be up for attempting a fully featured reorder script of my own. Not that I think I could do any better than you or the original author ![sweat](https://global.discourse-cdn.com/wanikanicommunity/original/4X/e/9/d/e9d5f2b8bb1f0568c7c7637ae2cb05e8d1968347.png)

---

<div class="post-metadata">

**Author:** ![best\_mimi](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/best_mimi/32/292720_2.png) [@best\_mimi](https://community.wanikani.com/u/best_mimi)\
**Post date:** [May 15, 2020, 5:55pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/183 "2020-05-15T17:55:05Z")

</div>

I don’t know why but ever since the crash this week the script hasn’t been working for me anymore D: anybody else having problems? No more reordering 😭

---

<div class="post-metadata">

**Author:** ![rfindley](https://sea1.discourse-cdn.com/wanikanicommunity/user_avatar/community.wanikani.com/rfindley/32/35202_2.png) [@rfindley](https://community.wanikani.com/u/rfindley)\
**Post date:** [May 15, 2020, 6:32pm UTC](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152/184 "2020-05-15T18:32:03Z")

</div>

Could you clarify “not working”?  
Just not showing up at all? Or not sorting, not displaying correctly?

Check the Javascript console for errors (press F12 and click the Console tab).

Also, try turning off other scripts and styles to see if it starts working.

[Previous page](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152.md?page=8)

[Next page](https://community.wanikani.com/t/userscript-reorder-ultimate-2-newest/35152.md?page=10)
