Is there a way to conditional sort criteria in views Is there a way to make a conditional sort criteria with views in D7?

I want to do the following stuff:

if node property = x
  use this sort criteria
else
  use this one
You could achieve this using Views PHP.

Excerpt from the page:


  This module allows the admin account (user 1) to add fields, filters
  and sorts to views which use PHP code. It also supports additional
  accounts when the core PHP Filter module is enabled.