Moved LOVER function to orderby expression