I am currently converting code from Drupal 7 to Drupal 8. So far I am unable to find resources on how to convert the call to
orderBy() which uses an expression.
$query->orderBy("FIELD(node.nid, '5,12,3,6')", 'ASC');
Based on D8 Select::orderBy, it only accepts alias or fields.
What is the code I should use in Drupal 8?