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"| Name | Name | Last commit date | ||
|---|---|---|---|---|
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"