cmake/list_insert_in_workspace_order.cmake: match logic in order_paths.py
cmake: unit test for list_insert_in_workspace_order.cmake