fix exists for multiple levels, return active levels sorted