Adds missing condition when updating categories' showOrder value