It's an algorithm that sorts a list of strings based in a given alphabet
import sortwords
Function | Parameters | Deinition |
---|---|---|
compareWords | w1(string) ; w2(string) ; alf(string) ; WHITESPACE(bool) |
Says the word that comes first based on the given alphabet |
sortWords | words(list) ; alf(string) ; WHITESPACE(bool) ; reversed(bool) |
Sorts a list of strings based on a given alphabet |