# sort icon

Sort. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/sort

- Category: Actions
- Use it for: sort, reorder, sort by, sort order
- Tags: sort, order, arrange, up-down, arrows, ascending, descending
- Family: arrow-down-a-z, sort-ascending, sort-descending
- Component name: SortIcon
- Added: 2026-10-14

## Alternatives

- `sort-ascending`: the current order is ascending
- `sort-descending`: the current order is descending
- `arrow-down-a-z`: alphabetical order
- `reorder`: manual rearranging by the user, e.g. move up or down (rearrange); sort orders by a key

## Don't confuse with

- `arrow-up-down`: arrow-up-down swaps two items vertically; it does not sort
- `filter`: filter narrows the results; sort orders them

## Also fits

- rearrange: order by a key such as name or date
- swap vertical: order a list by a key (sort)
- group by: sort the rows (sort)

## Not for

- filter (use `filter`): sort orders the results; filter narrows them
- dropdown (use `chevrons-up-down`): sort orders a list by a key (sort)

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/sort.svg · PNG https://gentleface.com/png/line-round/16/sort.png · https://gentleface.com/png/line-round/32/sort.png · https://gentleface.com/png/line-round/48/sort.png
- line-soft: https://gentleface.com/svg/line-soft/16/sort.svg · PNG https://gentleface.com/png/line-soft/16/sort.png · https://gentleface.com/png/line-soft/32/sort.png · https://gentleface.com/png/line-soft/48/sort.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/sort.svg · PNG https://gentleface.com/png/line-sharp/16/sort.png · https://gentleface.com/png/line-sharp/32/sort.png · https://gentleface.com/png/line-sharp/48/sort.png
- solid-round: https://gentleface.com/svg/solid-round/16/sort.svg · PNG https://gentleface.com/png/solid-round/16/sort.png · https://gentleface.com/png/solid-round/32/sort.png · https://gentleface.com/png/solid-round/48/sort.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/sort.svg · PNG https://gentleface.com/png/solid-soft/16/sort.png · https://gentleface.com/png/solid-soft/32/sort.png · https://gentleface.com/png/solid-soft/48/sort.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/sort.svg · PNG https://gentleface.com/png/solid-sharp/16/sort.png · https://gentleface.com/png/solid-sharp/32/sort.png · https://gentleface.com/png/solid-sharp/48/sort.png

The SVG of every style: https://gentleface.com/icons/sort.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z"/></svg>
```

### React

```tsx
// Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort
import type { SVGProps } from 'react';

export function SortIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/sort.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort. Takes the text color. */
.icon-sort {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#sort"/></svg>
```

### SwiftUI

```swift
// Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort
import SwiftUI

struct SortIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 4.146, y: 2.146))
        p.addCurve(to: CGPoint(x: 4.5, y: 2), control1: CGPoint(x: 4.244, y: 2.049), control2: CGPoint(x: 4.362, y: 2))
        p.addCurve(to: CGPoint(x: 4.854, y: 2.146), control1: CGPoint(x: 4.638, y: 2), control2: CGPoint(x: 4.756, y: 2.049))
        p.addLine(to: CGPoint(x: 7.854, y: 5.146))
        p.addCurve(to: CGPoint(x: 8.003, y: 5.5), control1: CGPoint(x: 7.953, y: 5.246), control2: CGPoint(x: 8.003, y: 5.364))
        p.addCurve(to: CGPoint(x: 7.854, y: 5.854), control1: CGPoint(x: 8.003, y: 5.636), control2: CGPoint(x: 7.953, y: 5.754))
        p.addCurve(to: CGPoint(x: 7.5, y: 6.003), control1: CGPoint(x: 7.754, y: 5.953), control2: CGPoint(x: 7.636, y: 6.003))
        p.addCurve(to: CGPoint(x: 7.146, y: 5.854), control1: CGPoint(x: 7.364, y: 6.003), control2: CGPoint(x: 7.246, y: 5.953))
        p.addLine(to: CGPoint(x: 5, y: 3.707))
        p.addLine(to: CGPoint(x: 5, y: 12.5))
        p.addCurve(to: CGPoint(x: 4.856, y: 12.856), control1: CGPoint(x: 5, y: 12.641), control2: CGPoint(x: 4.952, y: 12.759))
        p.addCurve(to: CGPoint(x: 4.5, y: 13), control1: CGPoint(x: 4.759, y: 12.952), control2: CGPoint(x: 4.641, y: 13))
        p.addCurve(to: CGPoint(x: 4.144, y: 12.856), control1: CGPoint(x: 4.359, y: 13), control2: CGPoint(x: 4.241, y: 12.952))
        p.addCurve(to: CGPoint(x: 4, y: 12.5), control1: CGPoint(x: 4.048, y: 12.759), control2: CGPoint(x: 4, y: 12.641))
        p.addLine(to: CGPoint(x: 4, y: 3.707))
        p.addLine(to: CGPoint(x: 1.854, y: 5.854))
        p.addCurve(to: CGPoint(x: 1.5, y: 6), control1: CGPoint(x: 1.756, y: 5.951), control2: CGPoint(x: 1.638, y: 6))
        p.addCurve(to: CGPoint(x: 1.146, y: 5.854), control1: CGPoint(x: 1.362, y: 6), control2: CGPoint(x: 1.244, y: 5.951))
        p.addCurve(to: CGPoint(x: 1, y: 5.5), control1: CGPoint(x: 1.049, y: 5.756), control2: CGPoint(x: 1, y: 5.638))
        p.addCurve(to: CGPoint(x: 1.146, y: 5.146), control1: CGPoint(x: 1, y: 5.362), control2: CGPoint(x: 1.049, y: 5.244))
        p.addLine(to: CGPoint(x: 4.146, y: 2.146))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.146, y: 9.146))
        p.addCurve(to: CGPoint(x: 13.5, y: 8.997), control1: CGPoint(x: 13.246, y: 9.047), control2: CGPoint(x: 13.364, y: 8.997))
        p.addCurve(to: CGPoint(x: 13.854, y: 9.146), control1: CGPoint(x: 13.636, y: 8.997), control2: CGPoint(x: 13.754, y: 9.047))
        p.addCurve(to: CGPoint(x: 14.003, y: 9.5), control1: CGPoint(x: 13.953, y: 9.246), control2: CGPoint(x: 14.003, y: 9.364))
        p.addCurve(to: CGPoint(x: 13.854, y: 9.854), control1: CGPoint(x: 14.003, y: 9.636), control2: CGPoint(x: 13.953, y: 9.754))
        p.addLine(to: CGPoint(x: 10.854, y: 12.854))
        p.addCurve(to: CGPoint(x: 10.5, y: 13.003), control1: CGPoint(x: 10.754, y: 12.953), control2: CGPoint(x: 10.636, y: 13.003))
        p.addCurve(to: CGPoint(x: 10.146, y: 12.854), control1: CGPoint(x: 10.364, y: 13.003), control2: CGPoint(x: 10.246, y: 12.953))
        p.addLine(to: CGPoint(x: 7.146, y: 9.854))
        p.addCurve(to: CGPoint(x: 6.997, y: 9.5), control1: CGPoint(x: 7.047, y: 9.754), control2: CGPoint(x: 6.997, y: 9.636))
        p.addCurve(to: CGPoint(x: 7.146, y: 9.146), control1: CGPoint(x: 6.997, y: 9.364), control2: CGPoint(x: 7.047, y: 9.246))
        p.addCurve(to: CGPoint(x: 7.5, y: 9), control1: CGPoint(x: 7.244, y: 9.049), control2: CGPoint(x: 7.362, y: 9))
        p.addCurve(to: CGPoint(x: 7.854, y: 9.146), control1: CGPoint(x: 7.638, y: 9), control2: CGPoint(x: 7.756, y: 9.049))
        p.addLine(to: CGPoint(x: 10, y: 11.293))
        p.addLine(to: CGPoint(x: 10, y: 2.5))
        p.addCurve(to: CGPoint(x: 10.144, y: 2.144), control1: CGPoint(x: 10, y: 2.359), control2: CGPoint(x: 10.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 10.5, y: 2), control1: CGPoint(x: 10.241, y: 2.048), control2: CGPoint(x: 10.359, y: 2))
        p.addCurve(to: CGPoint(x: 10.856, y: 2.144), control1: CGPoint(x: 10.641, y: 2), control2: CGPoint(x: 10.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 11, y: 2.5), control1: CGPoint(x: 10.952, y: 2.241), control2: CGPoint(x: 11, y: 2.359))
        p.addLine(to: CGPoint(x: 11, y: 11.293))
        p.addLine(to: CGPoint(x: 13.146, y: 9.146))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// SortIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val SortIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "sort", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(SortIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_sort.xml · Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M4.146 2.146C4.244 2.049 4.362 2 4.5 2C4.638 2 4.756 2.049 4.854 2.146L7.854 5.146C7.953 5.246 8.003 5.364 8.003 5.5C8.003 5.636 7.953 5.754 7.854 5.854C7.754 5.953 7.636 6.003 7.5 6.003C7.364 6.003 7.246 5.953 7.146 5.854L5 3.707L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3.707L1.854 5.854C1.756 5.951 1.638 6 1.5 6C1.362 6 1.244 5.951 1.146 5.854C1.049 5.756 1 5.638 1 5.5C1 5.362 1.049 5.244 1.146 5.146L4.146 2.146ZM13.146 9.146C13.246 9.047 13.364 8.997 13.5 8.997C13.636 8.997 13.754 9.047 13.854 9.146C13.953 9.246 14.003 9.364 14.003 9.5C14.003 9.636 13.953 9.754 13.854 9.854L10.854 12.854C10.754 12.953 10.636 13.003 10.5 13.003C10.364 13.003 10.246 12.953 10.146 12.854L7.146 9.854C7.047 9.754 6.997 9.636 6.997 9.5C6.997 9.364 7.047 9.246 7.146 9.146C7.244 9.049 7.362 9 7.5 9C7.638 9 7.756 9.049 7.854 9.146L10 11.293L10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2C10.641 2 10.759 2.048 10.856 2.144C10.952 2.241 11 2.359 11 2.5L11 11.293L13.146 9.146Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "sort" (line-round), MIT. https://gentleface.com/icons/sort
import 'package:flutter/widgets.dart';

class SortIcon extends StatelessWidget {
  const SortIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _SortIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _SortIconPainter extends CustomPainter {
  _SortIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(4.146, 2.146)
      ..cubicTo(4.244, 2.049, 4.362, 2, 4.5, 2)
      ..cubicTo(4.638, 2, 4.756, 2.049, 4.854, 2.146)
      ..lineTo(7.854, 5.146)
      ..cubicTo(7.953, 5.246, 8.003, 5.364, 8.003, 5.5)
      ..cubicTo(8.003, 5.636, 7.953, 5.754, 7.854, 5.854)
      ..cubicTo(7.754, 5.953, 7.636, 6.003, 7.5, 6.003)
      ..cubicTo(7.364, 6.003, 7.246, 5.953, 7.146, 5.854)
      ..lineTo(5, 3.707)
      ..lineTo(5, 12.5)
      ..cubicTo(5, 12.641, 4.952, 12.759, 4.856, 12.856)
      ..cubicTo(4.759, 12.952, 4.641, 13, 4.5, 13)
      ..cubicTo(4.359, 13, 4.241, 12.952, 4.144, 12.856)
      ..cubicTo(4.048, 12.759, 4, 12.641, 4, 12.5)
      ..lineTo(4, 3.707)
      ..lineTo(1.854, 5.854)
      ..cubicTo(1.756, 5.951, 1.638, 6, 1.5, 6)
      ..cubicTo(1.362, 6, 1.244, 5.951, 1.146, 5.854)
      ..cubicTo(1.049, 5.756, 1, 5.638, 1, 5.5)
      ..cubicTo(1, 5.362, 1.049, 5.244, 1.146, 5.146)
      ..lineTo(4.146, 2.146)
      ..close()
      ..moveTo(13.146, 9.146)
      ..cubicTo(13.246, 9.047, 13.364, 8.997, 13.5, 8.997)
      ..cubicTo(13.636, 8.997, 13.754, 9.047, 13.854, 9.146)
      ..cubicTo(13.953, 9.246, 14.003, 9.364, 14.003, 9.5)
      ..cubicTo(14.003, 9.636, 13.953, 9.754, 13.854, 9.854)
      ..lineTo(10.854, 12.854)
      ..cubicTo(10.754, 12.953, 10.636, 13.003, 10.5, 13.003)
      ..cubicTo(10.364, 13.003, 10.246, 12.953, 10.146, 12.854)
      ..lineTo(7.146, 9.854)
      ..cubicTo(7.047, 9.754, 6.997, 9.636, 6.997, 9.5)
      ..cubicTo(6.997, 9.364, 7.047, 9.246, 7.146, 9.146)
      ..cubicTo(7.244, 9.049, 7.362, 9, 7.5, 9)
      ..cubicTo(7.638, 9, 7.756, 9.049, 7.854, 9.146)
      ..lineTo(10, 11.293)
      ..lineTo(10, 2.5)
      ..cubicTo(10, 2.359, 10.048, 2.241, 10.144, 2.144)
      ..cubicTo(10.241, 2.048, 10.359, 2, 10.5, 2)
      ..cubicTo(10.641, 2, 10.759, 2.048, 10.856, 2.144)
      ..cubicTo(10.952, 2.241, 11, 2.359, 11, 2.5)
      ..lineTo(11, 11.293)
      ..lineTo(13.146, 9.146)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_SortIconPainter old) => old.color != color;
}
```
