O'Reilly logo
  • Hu Huang thinks this is interesting:

orderBy($"count".desc)

From

Cover of Advanced Analytics with Spark, 2nd Edition

Note

Need a period (.) after the right paranthesis.

orderBy($"count".desc).