fixed func definition order in selectsort realiz #singlepassproblems

Selection sorting queue enhancement had functions defined in an order that doesn't currently play nice with our new populator. Specifically, 'Sort' (the first function defined) referenced through a call 'Remove_Min' which comes one below. The newly added semantic checks on calls caught this -- cool. 

I'm fairly confident that this probably isn't the only place in the workspace where this happens. Keep a wary eye and fix them as they appear.