asivery / webminidisc

Upload your Music to NetMD and HiMD MiniDisc devices thanks to WebUSB and WASM
GNU General Public License v2.0
122 stars 28 forks source link

Correctly handle bulk track deletion #53

Closed blttll closed 4 months ago

blttll commented 4 months ago

Bulk track deletion implementation relies on track numbers being deleted to be sorted numerically. However, the sorting was done by ASCII character order leanding to deletion of unexpected tracks in some cases.

[2,3,11].sort() // [11, 2, 3]

asivery commented 4 months ago

Thank you - I had no idea about this bug.