You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
294 B
13 lines
294 B
package database
|
|
|
|
import (
|
|
"github.com/analogj/scrutiny/webapp/backend/pkg/models/measurements"
|
|
"sort"
|
|
)
|
|
|
|
func sortSmartMeasurementsDesc(smartResults []measurements.Smart) {
|
|
sort.SliceStable(smartResults, func(i, j int) bool {
|
|
return smartResults[i].Date.After(smartResults[j].Date)
|
|
})
|
|
}
|