Specifically the merge sort is improperly implemented. Merge sort should sort recursively but the code simply sorts two lists then merges them.