---
title: "Sort order animated icon"
description: "Sort order animated icon (Tables & analytics). Direction arrow winds up and flips 180° beside the bars while the outer bars trade lengths; ascending and descending are retained states."
canonical: https://generativeicons.com/icons/sort-order/
---

# Sort order animated icon

Direction arrow winds up and flips 180° beside the bars while the outer bars trade lengths; ascending and descending are retained states.

- Id: `sort-order`
- Category: Tables & analytics
- Search terms: ascending, descending, sort by, order by, sorting, arrange, high to low, low to high, asc, desc, reorder, sort direction
- Two states: ascending to descending, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/sort-order.lottie (dotLottie, 9071 bytes, sha256 956a96f2a79546aa7a33f799ddfc1020f97cb0100bd3aa0b10ff3073f330028e)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add sort-order
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/sort-order.mjs';

export function SortOrderIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/sort-order.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/sort-order/ · https://generativeicons.com/api/icons/sort-order
