Right now, if I type whereis on an executable that I'm interested in knowing the location, I get back several results where this software is located.  What configuration can be done to get the last result at the front of the list? If I'm running whereis gcc, I may have 5 different versions of gcc on the OS, but the highest/most-recent version displays last in the results of whereis gcc, so it's not the preferred version of gcc.  So even though I have version 7.1 of GCC, running gcc -v displays the lowest version that's installed on my box.
Manipulating ordering of results of whereis command
shell;path