Blog Sections Open

Sorting Ditto Results with AJAX After autoFilter Selection

Once a filtered listing works, AJAX sorting is really about transporting the current state and asking the server for a differently ordered version of the same result set.

After autoFilter narrows a catalog, users naturally expect to sort the results by price or another field without losing the current selection. The right mental model is not “run another unrelated request,” but “replay the current filter state with a different sort order.”

What an AJAX sort needs

  • the current filter parameters
  • the requested sort field and direction
  • a response format that replaces only the listing container

This keeps the page fast and predictable while avoiding the feeling that sorting and filtering are fighting each other.

Newer post

Generating a PDF from eForm Submission Data Before Sending Email

How to turn eForm field values into a styled PDF attachment and include it in the outgoing mail flow.

Older post

Applying Markups and Rounding Rules to Shopkeeper Prices Automatically

How to update Shopkeeper prices with markup rules and rounded output without editing every product manually.