added temp code for sorting prerequisites