Should have had <0 in strcmp instead of >=0; list was sorted in reverse. Code works otherwise.