public static function OpignoModuleBadges::opignoModuleResultsSortByDate in Opigno module 3.x
Same name and namespace in other branches
- 8 src/OpignoModuleBadges.php \Drupal\opigno_module\OpignoModuleBadges::opignoModuleResultsSortByDate()
Custom sort by date function.
File
- src/
OpignoModuleBadges.php, line 196
Class
- OpignoModuleBadges
- Class OpignoModuleBadges.
Namespace
Drupal\opigno_moduleCode
public static function opignoModuleResultsSortByDate($a, $b) {
return strtotime($a->completed) < strtotime($b->completed);
}