I ended up doing it with rather ugly JS code where it creates a hierarchy of keys only, then converts that into a more traditional JSON of proper key/values that are sortable, then finally exports that back out to your original file format. I'm sure there's a tighter, more elegant way to do it, but it seems to do the trick. I made some assumptions about the formatting of your original files, so the code probably wouldn't be reliable out in the wild. If you're comfortable sending the originals, I'll just run them and send you back the single sorted list?
-MM On Wednesday, October 12, 2022 at 8:17:41 AM UTC-7 [email protected] wrote: > This is definitely very close to what I want to happen, yes. It works in > PM with the synonyms at the bottom. I'd really like the synonyms at the top > for consistency and to avoid confusion, but it's on the right track. Is > there a way to have the synonyms stay at the top? > > How would I do this sorting? I can convert the txt file into a json file - > can it be sorted via BBEdit, or does it require another program? > -Matt > > -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/7c0b0153-30b7-4b7f-802d-75f6b4a5c0ban%40googlegroups.com.
