You are here

public static function Poll::sort in Poll 8

File

src/Entity/Poll.php, line 374

Class

Poll
Defines the poll entity class.

Namespace

Drupal\poll\Entity

Code

public static function sort($a, $b) {
  return strcmp($a
    ->label(), $b
    ->label());
}