Reorder your dynamically sized list without updating the whole collection.
...
let rank = LexoRank()
let sourceList = [
"aaaaaa",
"aaabbb"
]
let newRank = rank.order(sourceList[0], sourceList[1])
// expected, "aaaaab"
Reorder your dynamically sized list without updating the whole collection.
...
let rank = LexoRank()
let sourceList = [
"aaaaaa",
"aaabbb"
]
let newRank = rank.order(sourceList[0], sourceList[1])
// expected, "aaaaab"