Kuoxsr / spindex

A personal tool to generate sounds.json from a folder structure
0 stars 0 forks source link

Items directly under a sound event are not sorted correctly #19

Closed Kuoxsr closed 4 months ago

Kuoxsr commented 4 months ago

The new combining logic doesn't sort "replace", "sounds" and "subtitle" correctly. For whatever reason, it puts "replace" at the bottom.

Kuoxsr commented 4 months ago

This corrects the problem I was having when I created this issue report, but while I was working on it, I discovered that if the test data sends in the names of the incoming sounds in a random order, the result doesn't sort the sound names correctly. This is because the sort process on line 223 does not get called if there are no existing sounds for that particular event.