<div>
    <a href="#" ng-click="unitClicked()">{{$ctrl.unit.description}}</a>
    <ul class="list-group" ng-show="$ctrl.expanded || $ctrl.unit.expanded">
        <li ng-repeat="sensor in $ctrl.unit.sensors | filter:query | orderBy:'id'" class="list-group-item">
            <a ng-if="$ctrl.viewMode == 'sensors'" href="#" ng-click="sensorClicked(sensor)">
                <b>{{sensor.sensor_name}}</b> <translate>measure</translate> {{sensor.phenomenon_name}}</a>
            <a ng-if="$ctrl.viewMode == 'phenomena'" href="#" ng-click="sensorClicked(sensor)">
                {{sensor.phenomenon_name}}</a>
            <span class="badge badge-light badge-pill float-right">{{sensor.lastObservationValue}} {{sensor.uom}}</span>
        </li>
    </ul>
</div>

<div>
    <a href="#" ng-click="unitClicked()">{{$ctrl.unit.description}}</a>
    <ul class="list-group" ng-show="$ctrl.expanded || $ctrl.unit.expanded">
        <li ng-repeat="sensor in $ctrl.unit.sensors | filter:query | orderBy:'-sensor_id'" class="list-group-item">
            <a ng-if="$ctrl.viewMode == 'sensors'" href="#" ng-click="sensorClicked(sensor)">
                <b>{{sensor.sensor_name}}</b> <translate>measure</translate> {{sensor.phenomenon_name}}</a>
            <a ng-if="$ctrl.viewMode == 'phenomena'" href="#" ng-click="sensorClicked(sensor)">
                {{sensor.phenomenon_name}}</a>
            <span class="badge badge-light badge-pill float-right">{{sensor.lastObservationValue}} {{sensor.uom}}</span>
        </li>
    </ul>
</div>

Order sensors by sensor_id descending
Order sensors by sensor_id descending
