Fixed categories result showing incorrect parent_id and sort_order  #1454