But how to order sheets by name or by adding order?
zhongwm opened this issue · comments
But how to order sheets by name or by adding order?
Here's how you should be able to order by name:
val sheets: List[Sheet] = ...
Workbook(TreeSet(sheets : _*)(Ordering.fromLessThan[Sheet](_.name < _.name)))
Assuming comment above addresses issue. Feel free to reopen if incorrect.