We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [plugin-supersort]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Sort entries by related element in plugin

I am using a plugin to fetch Entry elements based on various criteria (eg to produce an array based on \craft\elements\Entry::find()). The section I am querying features a number of related ...
1
vote
1answer
12 views

Supersort - Sort multiple variables together

I'm trying to sort my commerce orders by 2 variables, one being in the order loop, and the second being within the lineitems. I want to order by the lineitem variable first, and THEN the order ...
2
votes
1answer
123 views

Using a matrix Date/Time field to sort entries

I'm trying to use Supersort to sort entries using a date/time field within a matrix, for example 1/6/2019 12:00AM. These dates will always be in the future. I want to sort it so that the entries that ...
1
vote
0answers
69 views

How to sort entries of a timeline?

I am building a timeline which I want to paginate. For this to be efficient, the timeline entries should be in a linear order. The challenge is that entries before present (BP) have to be in ...
1
vote
0answers
44 views

SuperSort Matrix Block sort by Year / Month / Now Data

{% set allCVs = entry.profileCv.all() %} {% set cvEntries = [] %} {% for item in allCVs %} {% set fromMonth = item.fromMonth.value %} {% set fromYear = item.fromYear %} ...
1
vote
1answer
76 views

How can I let the user activate a particular SuperSort filter

***I have just realised I am mixing up my filtering and sorting. I have amended the question to try and make it a bit clearer. I'm trying to use SuperSort plugin to run different filters, but I'm ...
2
votes
2answers
511 views

Sort entries by custom date in Matrix field / Super Table

I currently have numerous Super Tables with date fields inside and I am trying to get all table items to list themselves together in date order depending on what the user inputs. I have tried using ...
1
vote
1answer
260 views

Sorting SuperTable Field with SuperSort?

I'm trying to use supersort to sort my entries based on date values in a supertable field. This is what I have so far but it's not working. {% set artists = craft.entries.section('artists') %} {% ...
1
vote
0answers
85 views

Create a baseball standings table

I am building a baseball standings table. I currently have a Single section setup in Craft to handle some basic info. It contains a table field with 3 rows: Team, Wins and Losses. I am able to output ...
1
vote
1answer
131 views

Retrieve entries by random sort, then resort alphabetically

I need to pull X entries with {% set randEntries = craft.entries.section('presenters').order('RAND()').limit(10) %} But then sort them alphabetically on entry.lastName. Do I need to Supersort for ...
1
vote
2answers
457 views

Sorting multi-dimensional grouped arrays

My problem is that I don't know/understand how to sort complex arrays. I have a multi dimensional array of users from an external API. So it's not an array that I fetch from the Craft database. Let's ...
1
vote
1answer
212 views

Multisort with supersort plugin

I have entries that I would like to sort by 2 fields. First I would like to sort (or group) all of the entries in alphabetical order by a category field (brand), and then within each grouped brand I ...
2
votes
1answer
670 views

Paginate entries when I do not have a criteria model?

I have to... merge results from multiple different criteria models use Supersort to order my entries in the desired sort order [...] ...and need to paginate them for my index page. As the paginate ...
3
votes
1answer
210 views

Using Supersort with date field

I'm fetching entries from several different locales and merging them together into a single object. I then want to sort these to be most recent entry shown first. Using Supersort and the custom ...
3
votes
2answers
595 views

SuperSort - Sort by multiple variables

Is there a way with SuperSort to sort an array by multiple variables? For example, let's I have the following data and I want to sort by count and then alphabetically: pineapples (2) grapefruits (4) ...
4
votes
1answer
280 views

Sorting an array of entries according to a fixed list/array of items

I want to sort an array of entries in a specific order. Every entry has a 'shoptype' and I want to show all entries for type A, than type B, than type C. A partial solution would be to iterate over ...
1
vote
1answer
292 views

Sort entries by global variable category

I'm picking a season category (spring, summer, fall, winter) in a global variable that should dictate what entries come to the top of non-season category pages. These entries are already on a ...
3
votes
2answers
544 views

Using `getPrev` and `getNext` with entries sorted by SuperSort plugin?

I applied the superSort plugin function to a list of entries and it works perfectly: {% set entries = craft.entries.section('sectionName').type('entryType').order('entryTitle')|supersort('natsort') %}...