renamed sort() to ksort()
added sort by value
renamed Knot to Branch
docblock