コード例 #1
0
ファイル: actions.class.php プロジェクト: oparoz/thebuggenie
 public static function userPainSort(TBGIssue $first_issue, TBGIssue $second_issue)
 {
     $first_issue_pain = $first_issue->getUserPain();
     $second_issue_pain = $second_issue->getUserPain();
     if ($first_issue_pain == $second_issue_pain) {
         return 0;
     }
     return $first_issue_pain < $second_issue_pain ? -1 : 1;
 }