npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-plugin-sortable-entries

v1.2.1

Published

A Strapi plugin that enables drag-and-drop sorting of entries within a collection type.

Readme

Strapi Plugin: Sortable Entries

A Strapi plugin that enables drag-and-drop sorting of entries within a collection type.

⏳ Installation

Install with NPM.

npm install strapi-plugin-sortable-entries --save

Install with Yarn.

yarn add strapi-plugin-sortable-entries

🔧 Usage

1. Configure the Plugin

Add the following configuration to your config/plugins.ts file. Create the file if it doesn’t already exist:

export default {
  // …
  'sortable-entries': {
    enabled: true,
  },
};

Then restart the app to apply the changes.

2. Use in the Admin Panel

  1. Add a field named sortOrder of type integer to the collection type you want to make sortable.

  2. Configure the view of that collection type:

    • Set sortOrder as the Default sort attribute.
    • Choose ASC as the Default sort order.
  3. To start sorting entries, click the Drag icon located next to the Settings icon in the top-right corner.

  4. A modal will appear, allowing you to drag and drop entries into your desired order.

    • The displayed title for each entry is the Entry title defined in your collection type.
    • You can configure the entry title by editing a single entry and selecting Configure the view from the three-dot menu (...).
  5. Click Submit to save the new order. The modal will close and the list will refresh to reflect the changes.

Note: When adding new entries, you may leave the sortOrder field blank or even hide it in the Admin Panel. The plugin will automatically assign a value that places the new entry at the end of the list.

3. Use in the Frontend

To retrieve entries in the specific order from the frontend, you can make a GET request to the Strapi API. In the example below, we're querying a content type called products, ordered by the sortOrder field in ascending order:

GET http://localhost:1337/api/products?sort=sortOrder
  • products: The name of the content type you want to fetch.
  • sort=sortOrder: Sorts the results by the sortOrder field in ascending order. Append :desc for a descending order.

📸 Screenshots

Below are screenshots from an example application using this plugin to sort products.