jesus2099 / konami-command

power‐ups for various web sites
119 stars 25 forks source link

Reorder mediums when sorting releases #121

Open jesus2099 opened 8 years ago

jesus2099 commented 8 years ago

In release merge page, reorder mediums (bottom table’s groups of tbody > tr) when sorting releases (top table) by MBID age.

Build a reference to each medium — and pass it to sortBy(what, mediums) ?

Each medium starts with a tbody > tr.subh > th > input[id$='.release_id'][type='hidden'] (.parentNode.parentNode) and ends with the tbody > tr:not(.subh) that is preceding the next tbody > tr.subh or that is the last row.

jesus2099 commented 8 years ago

I already did the medium/release matching in #114.

jesus2099 commented 8 years ago

I am not sure exactly in what order it is initially proposed, though. Something like that, maybe:

Then

So, if it is correct, when we reorder as:

It should then become: