adjust entries order