is there a way to sort functions in a scala class/ object by their names using scalafmt?

100 Views Asked by At

I would like to sort the functions in the following objects alphabetically

object A {

def bfunc() = ???
def afunc() = ???

}

would get sorted to

object A {

def afunc() = ???
def bfunc() = ???

}

I tried to look through scala fmt docs, no success

0

There are 0 best solutions below