My solution is here
Dashboard: Sort Tiles based on an Attribute Value? - Built-In Apps and Drivers / Dashboard - Hubitat