Compares two firmware package filenames by the firmware version they carry so that the newest sorts first, for use as an Array#sort comparator.
Array#sort
The version is read with extractFirmwareVersionFromFirmwarePackageFilename, which knows both the new and the old filename format and normalises the version, and compared with compareFirmwareVersionsDesc. A filename carrying no readable version sorts last.
Generated using TypeDoc
Compares two firmware package filenames by the firmware version they carry so that the newest sorts first, for use as an
Array#sortcomparator.The version is read with extractFirmwareVersionFromFirmwarePackageFilename, which knows both the new and the old filename format and normalises the version, and compared with compareFirmwareVersionsDesc. A filename carrying no readable version sorts last.