gentleface

Gentleface › Actions › sort

sort icon

Sort: sort, reorder, sort by, sort order. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated sort-swap · line-round

The up arrow crouches and shoots off the top while a new one climbs in from the bottom. Half a beat later the down arrow does the same in its own direction.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.25 s to 2.05 s. Examples and helper.

Code line-round

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
// 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: see /icons/sort.md
Svelte
Svelte: see /icons/sort.md
HTML img
HTML img: see /icons/sort.md
CSS
CSS: see /icons/sort.md
Data URL
Data URL: see /icons/sort.md
Sprite
Sprite: see /icons/sort.md
SwiftUI
SwiftUI: see /icons/sort.md
Compose
Compose: see /icons/sort.md
Android XML
Android XML: see /icons/sort.md
Flutter
Flutter: see /icons/sort.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. 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. More in how to use.

With npm: import { SortIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
sort, reorder, sort by, sort order
Alternatives
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)
Tags
sort, order, arrange, up-down, arrows, ascending, descending
Category
Actions
Component name
SortIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 7

More actions icons

For agents

Metadata: /icons/sort.json · Markdown: /icons/sort.md · SVG: https://gentleface.com/svg/{style}/16/sort.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/sort.png