> ts.groupBy("b").count().orderBy(col("count"), ascending=False)
Sent from my iPhone > On Jul 30, 2016, at 2:54 PM, Don Drake <dondr...@gmail.com> wrote: > > Try: > > ts.groupBy("b").count().orderBy(col("count").desc()); > > -Don > >> On Sat, Jul 30, 2016 at 1:30 PM, Tony Lane <tonylane....@gmail.com> wrote: >> just to clarify I am try to do this in java >> >> ts.groupBy("b").count().orderBy("count"); >> >> >> >>> On Sun, Jul 31, 2016 at 12:00 AM, Tony Lane <tonylane....@gmail.com> wrote: >>> ts.groupBy("b").count().orderBy("count"); >>> >>> how can I order this data in descending order of count >>> Any suggestions >>> >>> -Tony > > > > -- > Donald Drake > Drake Consulting > http://www.drakeconsulting.com/ > https://twitter.com/dondrake > 800-733-2143