oh, usedTime is probably an Option not a Long. Another thing is that apps created before my patch don't have timestamps.
`sortBy(app => -  app.usedTime.getOrElse(0L)).map` perhaps.