Is it possible to sort an array but override precedence for certain words by placing them at the end using a place_last_lookup array?
input_place_last_lookup = ["not","in"];
input_array = [ "good", "in", "all", "are", "not", "programmers", "the", "world"]
input_array.sort(function(){/*override*/})
expected_output = ["all", "are", "good", "programmers", "the", "world", "not", "in"]
The words "not" and "in" should be placed at the end based on the lookup array.