func (VS *Server) updateOrderToCategory(c *gin.Context, items []Item, cat Category) {
	var id []bson.ObjectId
	for i := 0; i < len(items); i++ {
		id = append(id, items[i].getID())
	}
	cat.Items = id
	VS.addCategoryToDatabase(c, cat, "h_functionality", "updateOrderToCategory", "VS.addCategoryToDatabase")
}
// Updates the items in the array in the category by alphabetical order
Updates the items in the array in the category by alphabetical order
// Updates the items in the array in the category by alphabetical order
func (VS *Server) updateOrderToCategory(c *gin.Context, items []Item, cat Category) {
	var id []bson.ObjectId
	for i := 0; i < len(items); i++ {
		id = append(id, items[i].getID())
	}
	cat.Items = id
	VS.addCategoryToDatabase(c, cat, "h_functionality", "updateOrderToCategory", "VS.addCategoryToDatabase")
}
func ( VS * Server ) updateOrderToCategory ( c * gin . Context , items [ ] Item , cat Category ) { var id [ ] bson . ObjectId for i := 0 ; i < len ( items ) ; i ++ { id = append ( id , items [ i ] . getID ( ) ) } cat . Items = id VS . addCategoryToDatabase ( c , cat , " " , " " , " " ) }
Updates the items in the array in the category by alphabetical order
Updates the items in the array in the category by alphabetical order