got source sorting working properly