code: func ParseSortWorkItemsBy(s *string) (SortWorkItemsBy, error) {
  	if s == nil {
  		// this is the default case
  		// which returns workitems with highest execution order
  		return SortWorkItemsByDefault, nil
  	}
  
  	var sort SortWorkItemsBy
  	switch *s {
  	case "execution":
  		sort = SortWorkItemsByExecutionAsc
  	case "-execution":
  		sort = SortWorkItemsByExecutionDesc
  	case "created":
  		sort = SortWorkItemsByCreatedAtAsc
  	case "-created":
  		sort = SortWorkItemsByCreatedAtDesc
  	case "updated":
  		sort = SortWorkItemsByUpdatedAtAsc
  	case "-updated":
  		sort = SortWorkItemsByUpdatedAtDesc
  	default:
  		return SortWorkItemsBy(""), errors.NewBadParameterError("sort", *s)
  	}
  	return sort, nil
  }
docs: // ParseSortWorkItemsBy parses the string input and returns object of type SortWorkItemsBy
  // which can directly be used while querying database to order the output.