Questions related to sorting of results, usually retrieved from a database.

learn more… | top users | synonyms

0
votes
1answer
17 views

Commerce orders - header

On the orders admin page you have options to change fields in your table and sort fields, ect. In the headers option I have 'global: view order form' selected, and above the table there is a box where ...
0
votes
1answer
13 views

Sorting orders by name rather than by order number

On my orders page you can search orders by order number only - how do I change this so I can also sort by name, date, ect. When we have customers come in that do not know their order number, we cannot ...
1
vote
0answers
49 views

How to sort content of nodes by dynamic fields?

I have a content type named "Article". "Article" has fields: Body, Image, Tags, etc. I want to create a sort handler that will sort node content by content type fields. I know, every field has its own ...
1
vote
1answer
34 views

How to order multiple values in a field collection

I have an Content type which includes a field of type Field collection, of which there can be an unlimited number of values. I can't work out how to order the rows of data that are displayed by this ...
0
votes
1answer
28 views

Allow end user to choose sorting method

How can I allow an end-user (site visitor) to choose a view sorting method themselves? Or more specifically have the visitor choose Ascending or Descending based on an integer?
0
votes
0answers
14 views

How to sort comments with the most popular option as well?

I am looking to display the comment box beneath a content type with the default sort as newest first and also provide another sort option i.e. most popular (maximum likes). I know how to do the ...
0
votes
1answer
71 views

Sort taxonomy terms alphabetically by default

I created a taxonomy vocabulary and added some taxonomy terms to it. How can i sort alphabetically the listing of terms in taxonomy vocabulary page. The same sorting needs to reflect in content type ...
1
vote
1answer
24 views

Allowing users to choose between two sort options in a view

I have a view of user accounts. I want to allow visitors to the site to choose to sortthis view by login date or by account creation date in a view (Views 3, Drupal 7). It's easy to expose the sort ...
1
vote
4answers
64 views

Articles listed in custom order

I have a Drupal 7.31 installation. I have 3 rows in homepage, in which are listed 3 articles for each of them. Here a partial screenshot of Edit View for the first row, in which Sort criteria ...
0
votes
2answers
32 views

Articles listed in order base upon “Last-edit Date” instead of “Publishing Date”

I have to solve a small bug in a Drupal 7.31 installation. I have 3 rows in homepage, in which are listed 3 articles for each of them. Here a partial screenshot of Edit View for the first row, in ...
1
vote
1answer
104 views

Sort view items by field collection's field value

I added a field collection to Basic page that contains: box title box image box position on page You can add 0 or more field collection's items to every basic page. Every node may contain 0 or ...
0
votes
0answers
16 views

Allow a user to sort a list of nodes for the purpose of discovery

I've got a list of nodes (restaurants) that each have the following fields: name, price, opening hours, location. I'm looking for a sort module that allows users to input their desired price range, ...
0
votes
0answers
41 views

Mutliple content type ordering with drag and drop

I need to display all nodes of a certain content type at 2 different places, in a different order. The order sequences need to be defined by drag and drop (obviously in 2 different admin pages). I ...
0
votes
1answer
43 views

Sorting non-english characters in multilingual website

I'm having an issue with finding good approach to make sorting works in a Drupal Views. I've multilingual website (1 database for all languages). Few languages are sorted wrong. I've ...
0
votes
0answers
95 views

Views sort by file field delta

I've seen this problem hinted at in several other questions but all the answers have skirted the problem in some way, not answering how/if this can be done. I have an image field on a node ( using ...
0
votes
0answers
22 views

How do you sort alphabetically taxonomy CHILDREN terms in a parent?

I'm currently using Drupal 7 taxonomy manager. I have a big list of taxonomy terms and organized with child/parent relationships. I want to only alphabetize certain children in certain parents. How ...
0
votes
0answers
28 views

Alphabet sorting does not work properly with unique characters

I've a view with sorting by first character and it does not work properly for unique characters (f.x. danish characters: ø å æ). What should I do in order to sort they properly? Thanks.
0
votes
0answers
29 views

Taxonomy menu block order

I have a Taxonomy Menu Block, displaying the whole tree of a taxonomy category. However if I change the order of the taxonomy terms it does not affect the Taxonomy Menu Block. Does anyone know if it ...
1
vote
1answer
59 views

How to correctly sort on accented letters when using the Lexicon module?

I'm facing an issue with the Lexicon module which I still can't figure out. I have a glossary of French terms, sorted alphabetically. And I notice that the accented letters are considered as ...
1
vote
0answers
79 views

Views alphabetical sorting problem for non-English language

I want to sort one of the views I created alphabetically but there is a problem (I'm sorting taxonomy terms by grouping them with the first letters): The website's language is Turkish and in Turkish ...
0
votes
0answers
38 views

Sort comments base on a field

This is the sort_comment.module file. <?php /* drupal@ganovelli.it - blackice78 */ define('SORT_COMMENTS_OLDER_FIRST', 1); // default define('SORT_COMMENTS_NEWER_FIRST', 2); /* ...
0
votes
0answers
9 views

filter terms starting with a certain character and put them in the beginning

I got a vocabulary called "Locales". there's about 20 states in it and 5000 cities. now, there's also something that my client wants to call "generic states" which, are names of countries, that start ...
2
votes
2answers
203 views

Taxonomy terms view sorting results numerically

I have a taxonomy that's comprised entirely of numeric term names, 1 through 1200 (with a few numbers missing in between). I created a new "Taxonomy terms" view to show all terms in this vocabulary. ...
0
votes
1answer
45 views

How to sort comments by a new field in the comment table?

I'm writing a module which allows users to put comment on each paragraph. I have added a new field to the comment table, called paragraph_id, and in the comment form I have added a field that asks ...
0
votes
1answer
330 views

View sorting programmatically

I have a view with grouping (by one field) and sorting by nodequeue weight. I want to sort the groups as well so I've used hook_views_pre_render and sorted the results array programmatically, but as ...
0
votes
1answer
35 views

Views Sort Criteria: Sort by Taxonomy terms

I have a view that lists team members of a country that are referenced by an Entity reference field. Now these team members can have different functions and job titles. I assign them through a ...
0
votes
1answer
99 views

Drupal Views Sorting problem

I have a question on views sorting. I have two content type(TypeA TypeB) which has the same field. And i use views to list all the content with the sort i want. Right now my problem is i want to ...
1
vote
0answers
34 views

Taxonomy Sort as as a dropdown

One of my client requirement states they need to sort some field based on taxonomy id. I am very much fine with sorting it based on Id or name in asc or desc order. But client states that they need to ...
1
vote
0answers
67 views

Views attachment - Inherit sort option from Table

I am using a views with format "Table". The fields on the table are sortable. Under this base view I have a views attachment. The attachment has the same content but with different Format. I am also ...
0
votes
1answer
54 views

How do I sub-sort a view?

We have a view containing two fields that we would like to sort - specifically issue # and Title. We would like to sort the view first by the Issue # field and then secondly by Title, so that nodes ...
0
votes
1answer
176 views

Altering the views Sorting Criteria, to display first ISSET fields

Ia am working on a view that displays search results for nodes of a certain content type. In this Content Type there is a field "photo". Some of the nodes have a photo, some of them not. Is it ...
5
votes
3answers
2k views

How to sort content in Views by menu weight

I have a D7 Views view which delivers a number of nodes. I would like them to be sorted based on the weight that their relevant menu items have. I would like to avoid the fine module DraggableViews ...
0
votes
2answers
171 views

How to get view by tag sorting the same as main view sort criteria

I am new to Drupal 7. I have a view set up at /people with the sort criteria set to a field called surname. This is working fine, listing people out alphabetically by surname. I have tags associated ...
3
votes
4answers
3k views

I have no fields available for sorting with Search API sorts module

This question is similar to another question I had, but now in a different context. My previous question was: Search text box for Search API + Database + Search Views + Facets API + Facets Bonus ...
3
votes
1answer
390 views

Views sorting by number of values in field

I have a content type with an text field with unlimited number of values. I have a view for that content type and I want to sort it by number of values in that field. How can I do that in Views?
0
votes
1answer
58 views

Extra sorting criterium in case of ex aequo with Views

My articles have a 'Ranking' field, which contains an integer. I have a view that sorts articles depending on this value: the article with the highest score is a the top. Now, in case of an ex aequo, ...
1
vote
1answer
376 views

Views - Select list field type as sorting order criteria

I have a view which uses a custom field called article type as it's sorting criteria to sort articles. This article type field, has the following options: 0Editorials|Editorial 2Feature|Feature ...
0
votes
1answer
506 views

Drupal 7 views complex sort

I have a drupal view which displays 10 items. I have 3 items which need to remain at the top of the list, which i have done by making them sticky. These need to be in a particular order. The the rest ...
0
votes
1answer
104 views

Advanced sorting question about drupal views

I have a content type with latitude and longitude coordinate fields. i have a view that is displayed on each page with this content type, and a google map plotting the location. Is there any way to ...
0
votes
1answer
136 views

Only sort views after selected

I am looking to sort nodes in a view, but only after the user has selected the sorting value. So the nodes are currently listed in posting order, but I would like to provide the user to sort by ...
2
votes
1answer
1k views

Is there a way to create a sort option for search results that works together with facets?

I'm using Drupal Commerce along with Search API and Facet API to create a search for my product dispays. Is there a way to create a facet that sorts products by price? I've tried using the exposed ...
0
votes
1answer
344 views

Order nodes based on entity reference filter

In my Drupal 7 website I have an A content type with an entity reference 'parent' field which I use to link to nodes of a B content type. I have to implement a way to sort A nodes basing on their B ...
0
votes
1answer
210 views

Ordering Users for use in view

I have a view that displays data for each user. Now I would like to be able to order the users. One solution would be to add a new field called something like field_weight to the user content type ...
2
votes
1answer
57 views

How to put a date token at the start of Backup and Migrate file name pattems?

Because Backup and Migrate sorts files by age, when you untar or copy some files to a destination, they will be more or less the same date and it may be hard to tell which ones are the latest etc. ...
0
votes
2answers
190 views

Customize order of a list in Drupal 6

I have a list of links that are all displayed as one list. They are currently sorted by 'Title' asc. I would like to customize the order of this list. How can I do that in Drupal 6. Example: A1 ...
1
vote
2answers
411 views

Can't we sort a “Node module element”?

I'm creating a new content type named "Portfolio". Image 1: I put a name to the "Title field label": Project Name Image 2: That thing works as a 'Node module element' in Fields Image 3: I can't ...
1
vote
1answer
146 views

Exposing sort breaks order

In my view I am exposing two sort options in the following order: Date > Newest First Title > A-Z When both sort options are exposed it will correctly display the nodes sorted by date but will ...
2
votes
1answer
1k views

Views: custom field for sort criteria

My View has a " Global: Custom text"- Field that contains Integers (1,3, ..). The field is overwritten by a php-Template. I want to add this field to "Sort criteria", so the view can be sorted - but ...
1
vote
2answers
1k views

Combine views sort criteria in exposed form

Drupal 7, views 3.6. I have a view with 2 sort criteria: date and category. The sort is exposed in a form block. Currently the user only has the choice to select 1 sort criteria, ie: sort by date ...
0
votes
1answer
97 views

Job board: Faceted Search with “OR” operator, but sort results by most matching facet criterias/term count

I'm quite stuck with searching for a solution for my problem and I hope that you can maybe help me. In general I want to build a small job platform. It includes an "Explore"-Section, which is just ...