Sort the articles by id before saving