Still broken - can't work diagram into code. Pain in the arse.
Added flow diagram for sorting method, didn't get any further with implementation.