I'm to the point of assuming it's not possible, but I would like to display my teams issues ordered by epic link on their Kanban board, so I added the following to my filter query:
ORDER BY "Epic Link", Rank ASC
This actually works well, until we try to rank issues on the back log, at which point we get the following:

We don't want to use Epics as swimlanes, because it still shows epics that only have issues in the Done column, which we don't care to see.
Anyone have any thoughts on how to either get the ranking working with a multi-criteria Order By, or how to exclude Epics from swimlane configuration if there are only Done items in said Epics?