Wouldn't it be more simple to have one single file where entries are already sorted?