Simplify sorting in SketchData
Simplify sorting in SketchData

Instead of manually sorting the primary file at the start, and fiddling
to keep it there during resorting, this just modifies the sorting
comparator used to sort any primary files at the start. This is slightly
more generic than needed, also supporting multiple primary files, to at
least not break the Comparator preconditions when for some reason there
are multiple primary files.

nandojve/Arduino,PaoloP74/Arduino,majenkotech/Arduino,Chris--A/Arduino,stickbreaker/Arduino,majenkotech/Arduino,stickbreaker/Arduino,bsmr-arduino/Arduino,Chris--A/Arduino,majenkotech/Arduino,bsmr-arduino/Arduino,PaoloP74/Arduino,bsmr-arduino/Arduino,nandojve/Arduino,Chris--A/Arduino,Chris--A/Arduino,me-no-dev/Arduino-1,bsmr-arduino/Arduino,me-no-dev/Arduino-1,me-no-dev/Arduino-1,PaoloP74/Arduino,PaoloP74/Arduino,nandojve/Arduino,PaoloP74/Arduino,nandojve/Arduino,majenkotech/Arduino,stickbreaker/Arduino,nandojve/Arduino,PaoloP74/Arduino,majenkotech/Arduino,stickbreaker/Arduino,majenkotech/Arduino,Chris--A/Arduino,nandojve/Arduino,nandojve/Arduino,me-no-dev/Arduino-1,majenkotech/Arduino,Chris--A/Arduino,Chris--A/Arduino,Chris--A/Arduino,bsmr-arduino/Arduino,nandojve/Arduino,bsmr-arduino/Arduino,bsmr-arduino/Arduino,me-no-dev/Arduino-1,me-no-dev/Arduino-1,me-no-dev/Arduino-1,stickbreaker/Arduino,me-no-dev/Arduino-1,stickbreaker/Arduino,PaoloP74/Arduino,bsmr-arduino/Arduino,PaoloP74/Arduino,stickbreaker/Arduino