# Using Touch Support when Sorting

Explore code examples and detailed instructions for enabling sorting and zooming in the control using touch gestures in the article

## Content

You can use touch gestures when sorting.
Tap the sort indicator to sort. The [AllowAutoSort](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Column.AllowAutoFilter.html) property must be true to use touch gestures. The following image displays sort indicators.
![Sort Indicator](https://cdn.mescius.io/document-site-files/images/2238e618-a1fb-45a6-9ce5-9a4157bd2931/images/touchsort.png)
Set the [ZoomFactor](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.SheetView.ZoomFactor.html) property to change the size of the control. Some touch gestures are easier to use if the control is zoomed.

> !type=note
> **Note:** If the user selects a column that contains sorting and filtering indicators, the resize gripper is displayed. The gripper has a higher priority than the filter list or sort operation. Set the [HeaderIndicatorPositionAdjusting](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.HeaderIndicatorPositionAdjusting.html) property to specify the distance between the sorting and filtering indicators and the right edge of the column so that the user can sort or filter the column while the gripper is displayed.

## Using Code

The following example allows sorting and zooms the control.

```csharp
fpSpread1.ActiveSheet.Columns[0, 3].AllowAutoSort = true;
fpSpread1.ActiveSheet.ZoomFactor = 2;
```

```vbnet
fpSpread1.ActiveSheet.Columns(0, 3).AllowAutoSort = True
fpSpread1.ActiveSheet.ZoomFactor = 2
```

## See Also

[Using Touch Support with AutoFit](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsautofit)
[Using Touch Support with Cell Notes](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tscellnote)
[Using Touch Support with Charts](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tschart)
[Using Touch Support with Clipboard Operations](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsclipboard)
[Using Touch Support with Drag and Fill](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsdragfill)
[Using Touch Support with Drop-Down Elements](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tselements)
[Using Touch Support with Editable Cells](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tseditcells)
[Using Touch Support with InputMan Cells](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsinputman)
[Using Touch Support with Filtering](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsfilter)
[Using Touch Support with Grouping](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsrangegroup/tsgrouping)
[Using Touch Support with Range Grouping](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsrangegroup)
[Using Touch Support when Moving Columns or Rows](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsmove)
[Using Touch Support when Resizing Columns or Rows](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsresize)
[Using Touch Support with Scrolling](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsscroll)
[Using Touch Support with Selections](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsselection)
[Using Touch Support with Shapes](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsshapes)
[Using Touch Support with Viewports](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tsviewport)
[Using Touch Support with the Tab Strip](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tstabstrip)
[Using Touch Support with Zooming](/spreadnet/docs/latest/online-win/overview/spwin-devguide/tsmain/tsusing/tszoom)