Commit 84ef969a authored by Jim Nelson's avatar Jim Nelson


parent b4ca46dc
......@@ -53,7 +53,7 @@ public class SortedList<G> : Object, Gee.Iterable<G> {
// don't use a full merge sort if the number of items is one ... a binary
// insertion sort with the insert is quicker
if (items.size == 1) {
list.insert(get_sorted_insert_pos(list.get(0)), list.get(0));
list.insert(get_sorted_insert_pos(items.get(0)), items.get(0));
added = true;
} else {
added = merge_sort(items);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment