Sort A Binary Array Using Functions If A Word