active_c sort modified