Sorting questions

This topic contains 23 replies, has 4 voices, and was last updated by  jotomas 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #503532

    jotomas
    Buyer
    Post count: 802

    Hello,

    It was quite difficult for me to understand Sorting in GD v1, and now with GD v2 I still have several questions:

    1) Documentation mentions that Search results are sorted by “relevance”. Would it be possible to know which factors are “relevant” for such “relevance” and how relevant each one is: Featured, Reviews, Distance (I understand that only when “Near” field of the search form has been set), Description lenght, Tags, Categories?

    2) The terminology is confusing for me. Are search pages also archive pages? A listing page is the same than an archive page? A listing page is a list of listings?

    3) I understand that CPT Sorting settings work for the search form showing in listing pages, is this correct? Then, again, a listing page is the same than an archive page? A listing page is a list of listings?

    4) The dropdown sorting options show in listing pages including search results pages. Does this mean that a search results page is no longer a search page but a listing page? Again, a listing page is an archive page? A listing page is a list of listings?

    5) The sorting (with its subsortings) set as default in the CPT sorting tab settings does not show in the dropdown sorting options menu, is this correct? Therefore, if there is only one sorting option (with its subsortings) set which is the default option, the dropdown sorting options menu does not show, is this correct?

    6) Additional sorting (with its subsortings) set in the CPT sorting tab settings show in the dropdown sorting options menu, is this correct?

    7) I am trying unsuccesfully to set these sorting options:

    – Default: Featured first with listings in random order, then listings sorted by Packages and randomly within each Package, that is, not featured listings in random order for the most expensive Package, then not featured listings in random order for sthe econd most expensive Package,…. finally not featured listings in random order for the least expensive Package.

    – A to Z: Featured first with listings sorted alphabetically from A to Z, then listings sorted by Packages and alphabetically from A to Z within each Package, that is, not featured listings in alphabetical order from A to Z for the most expensive Package, then not featured listings in alphabetical order from A to Z for the second most expensive Package,…. finally not featured listings in alphabetical order from A to Z for the least expensive Package.

    – Z to A: Featured first with listings sorted alphabetically from Z to A, then listings sorted by Packages and alphabetically from Z to A within each Package, that is, not featured listings in alphabetical order from Z to A for the most expensive Package, then not featured listings in alphabetical order from Z to A for the second most expensive Package,…. finally not featured listings in alphabetical order from Z to A for the least expensive Package.

    Is it possible? I have been trying for more than half an hour and I have not been able to find a way to make it work.

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #503538

    Guust
    Moderator
    Post count: 29970

    1) Documentation mentions that Search results are sorted by “relevance”. Would it be possible to know which factors are “relevant” for such “relevance” and how relevant each one is: Featured, Reviews, Distance (I understand that only when “Near” field of the search form has been set), Description lenght, Tags, Categories?

    Search results are sorted with relevance to what the visitor is searching for.
    Title, description, tags and categories are searched, and location is also considered.
    Featured, reviews and custom fields are not relevant.

    2) The terminology is confusing for me. Are search pages also archive pages? A listing page is the same than an archive page? A listing page is a list of listings?

    Archive pages are the CPT and category pages.
    The results of a search by a visitor are presented on the Search page.
    Sometimes archive pages are referred to as Listings pages, note plural.
    A listing page, singular, is referred to as a Detail page.

    3) I understand that CPT Sorting settings work for the search form showing in listing pages, is this correct? Then, again, a listing page is the same than an archive page? A listing page is a list of listings?

    You can only search within one CPT at the same time, so search results are always only from one CPT.

    4) The dropdown sorting options show in listing pages including search results pages. Does this mean that a search results page is no longer a search page but a listing page? Again, a listing page is an archive page? A listing page is a list of listings?

    There are no sorting options on the search page, only on archive pages.
    This may assist too: https://wpgeodirectory.com/docs/searching-and-browsing/

    5) The sorting (with its subsortings) set as default in the CPT sorting tab settings does not show in the dropdown sorting options menu, is this correct? Therefore, if there is only one sorting option (with its subsortings) set which is the default option, the dropdown sorting options menu does not show, is this correct?

    Yes, that is correct, if I am understanding correctly what you are asking.

    6) Additional sorting (with its subsortings) set in the CPT sorting tab settings show in the dropdown sorting options menu, is this correct?

    7) I am trying unsuccesfully to set these sorting options:

    – Default: Featured first with listings in random order, then listings sorted by Packages and randomly within each Package, that is, not featured listings in random order for the most expensive Package, then not featured listings in random order for sthe econd most expensive Package,…. finally not featured listings in random order for the least expensive Package.

    If you already have featured first as default, then you cannot add them again later, that would not make sense. If all featured ones are first, then there are none left …

    – A to Z: Featured first with listings sorted alphabetically from A to Z, then listings sorted by Packages and alphabetically from A to Z within each Package, that is, not featured listings in alphabetical order from A to Z for the most expensive Package, then not featured listings in alphabetical order from A to Z for the second most expensive Package,…. finally not featured listings in alphabetical order from A to Z for the least expensive Package.

    A to Z is just that, any further sorting would only work if you have listings with exactly the same title.

    – Z to A: Featured first with listings sorted alphabetically from Z to A, then listings sorted by Packages and alphabetically from Z to A within each Package, that is, not featured listings in alphabetical order from Z to A for the most expensive Package, then not featured listings in alphabetical order from Z to A for the second most expensive Package,…. finally not featured listings in alphabetical order from Z to A for the least expensive Package.

    Z to A is just that, any further sorting would only work if you have listings with exactly the same title.

    Thanks

    #503554

    jotomas
    Buyer
    Post count: 802

    Hi Guust,

    Thank you very much for your response. Unfortunately, now I am even more confused.

    Please, allow me to go again to the sorting options I would like to achieve to configure.

    1) Default sorting (RANDOM):

    a – Featured first with featured listings in random order.

    b – Then listings sorted by Packages and randomly within each Package, that is, NOT featured listings in random order for the most expensive Package, then NOT featured listings in random order for the second most expensive Package,…. finally NOT featured listings in random order for the least expensive Package.

    Apparently this has been achieved with the settings as per the first screenshot attached. However, “Is Featured?” field had to be marked as “default”, otherwise it did not work as expected.

    2) Optional sorting 1 (A to Z):

    a – Featured first with featured listings sorted alphabetically from A to Z.

    b – Then listings sorted by Packages and alphabetically from A to Z within each Package, that is, NOT featured listings in alphabetical order from A to Z for the most expensive Package, then NOT featured listings in alphabetical order from A to Z for the second most expensive Package,…. finally NOT featured listings in alphabetical order from A to Z for the least expensive Package.

    3) Optional sorting 2 (Z to A):

    a – Featured first with featured listings sorted alphabetically from Z to A.

    b – Then listings sorted by Packages and alphabetically from Z to A within each Package, that is, NOT featured listings in alphabetical order from A to Z for the most expensive Package, then NOT featured listings in alphabetical order from Z to A for the second most expensive Package,…. finally NOT featured listings in alphabetical order from Z to A for the least expensive Package.

    In the second screenshot you can see how I unsuccesfully tried to set these two additional sorting options.

    The third option does not even show in the dropdown sorting options menu.

    Please, let me know if it is possible or not to achieve what I am looking to achieve and how, or if it is simply not possible.

    I suspect that the fact that the “Is Featured?” field of the first sorting option had to be marked as default and those of the other two sorting options can not, has something to do, but then I am very confused about this “default”. What does it “default” to? I thought that it was the “default” sorting option, but then why does it not work as expected if it is not marked?

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #503610

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin credentials and we will look into why the default issue is working the way it is for featured. It should show in the dropdown. All sorting options, if available in the UI, should work.

    #503622

    jotomas
    Buyer
    Post count: 802
    This reply has been marked as private.
    #503813

    Alex Rollin
    Moderator
    Post count: 27815

    Z-A shows in the sort drop down. You had it set for descending, though, and I think you wanted Ascending. Please take a look.

    #503861

    jotomas
    Buyer
    Post count: 802

    Hi Alex,

    Thank you very much for your response.

    Sorry, I did not explain correctly the problem:

    1) The three options “Aleatori”, “A – Z” and “Z – A” do show in the dropdown menu.

    2) I select the “A Taula” Category in the Home page, which is the Category with more listings.

    3) Archive page for “A Taula” Category shows with the “default” sorting option “Aleatori” (“random”). Apparently, listings show sorted as expected:

    a – Featured first with featured listings in random order.

    b – Then listings sorted by Packages and randomly within each Package, that is, NOT featured listings in random order for the most expensive Package, then NOT featured listings in random order for the second most expensive Package,…. finally NOT featured listings in random order for the least expensive Package.

    4) When “A – Z” option selected, listings show sorted exactly like for “random” instead than as expected:

    a – Featured first with featured listings sorted alphabetically from A to Z.

    b – Then listings sorted by Packages and alphabetically from A to Z within each Package, that is, NOT featured listings in alphabetical order from A to Z for the most expensive Package, then NOT featured listings in alphabetical order from A to Z for the second most expensive Package,…. finally NOT featured listings in alphabetical order from A to Z for the least expensive Package.

    5) When “Z – A” option selected, listings show sorted in the inverse way as expected:

    a – Listings sorted by Packages and alphabetically from Z to A within each Package in the inverse order, that is, NOT featured listings in alphabetical order from A to Z for the least expensive Package, then NOT featured listings in alphabetical order from Z to A for the second least expensive Package,…. finally NOT featured listings in alphabetical order from Z to A for the most expensive Package.

    b – Then featured last with featured listings sorted alphabetically from Z to A.

    While the sorting order expected was:

    a – Featured first with featured listings sorted alphabetically from Z to A.

    b – Then listings sorted by Packages and alphabetically from Z to A within each Package, that is, NOT featured listings in alphabetical order from A to Z for the most expensive Package, then NOT featured listings in alphabetical order from Z to A for the second most expensive Package,…. finally NOT featured listings in alphabetical order from Z to A for the least expensive Package.

    4) It is not possible to select again the option “Aleatori” (“random”) since it changes itself to “A – Z”.

    I am really very confused. I believe that there is a combination of factors going on here:

    1) There is something wrong, some bug.
    2) I am doing something wrong, but I am not seeing what.
    3) Something that I want to do is simply not possible.

    I look forward to your news.

    Thank you very much once again for your help.

    Best regards.

    #503908

    Alex Rollin
    Moderator
    Post count: 27815

    Sorting by price package sorts by the package ID, not the price.

    Featured sort should always be descending (my mistake) as we have discussed before.

    If you sort A-Z, then choose ascending THEN, when you choose Z-A Also choose ascending.

    Sub-sorts will sort the listings that do not get caught in the first sort. So, if the first sort is featured, then each next sort is NOT featured, as you say.

    #503960

    jotomas
    Buyer
    Post count: 802

    Hi Alex,

    Thank you very much for your reply.

    Of course I have been always assuming that “Sorting by price package sorts by the package ID, not the price”.

    After two frustrating hours reading and re-reading the documentation https://wpgeodirectory.com/docs-v2/places/sorting/ and this thread, and after trying every possible combination, I am giving up.

    I can not find the way to achieve what I am looking for. I do not even know yet if it is possible. But I am convinced that is is a very basic sorting configuration that should be very easy to set and make it work.

    Additionally, I am absolutely unable to understand the logic behind sorting settings. Not a single thing does what I expect (sorting options, “Is active” checkbox, “Default sort?” button, moving sorting options to subsorting).

    I have the strong feeling that there are more than one bugs or malfunctions. I simply refuse to accept that I could be so stupid 🙂

    In any case, I firmly believe that a detailed documentation and several fully explained examples would be absolutey necessary.

    Best regards.

    #504049

    Guust
    Moderator
    Post count: 29970

    Each sorting option runs one by one.

    So if you set sort A-Z, then all your listings will be sorted alphabetically. That has all of them sorted, so now asking to have some second nested sub-sort does not work, because there is nothing left to sort. Makes sense?

    But imagine you have two listings with exactly the same title. An A-Z sort will leave those 2 listings open for some second nested order to do some work, but only on those 2 listings.

    So for example, you cannot sort by package within a A-Z sort, because they are all sorted already alphabetically. The package sub-sort has no work to do, UNLESS there are 2 listings with exactly the same title.

    Default sort means that is the one the page will be sorted with if a visitor does arrive on the page first time. You can only have one default sort for that.

    Hopefully we are a bit clearer now. Let us know.

    #504521

    jotomas
    Buyer
    Post count: 802

    Hi Alex, hi Guust,

    Thank you very much for your responses.

    I would appreciate very much if you could respond to this simple question: is it possible to configure sorting to do what I am looking to achieve or something similar?

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #504526

    Guust
    Moderator
    Post count: 29970

    No

    Thanks

    #507091

    jotomas
    Buyer
    Post count: 802

    Hi,

    I see that the sorting documentation page has been updated the 22nd August.

    https://wpgeodirectory.com/docs-v2/places/sorting/

    However, I am still very confused.

    Some questions:

    1) What does mean the fourth phrase “Any sorting options that you create will also be available for use with GD Listings.”?

    2) With “Package” sorting option, how listings are sorted within each package group of listings? I have the impression that they are randomly sorted.

    3) I notice duplicated listings showing in succesive sorting result pages. Some listings show up to three and four times. Why is this happening and how can it be avoided? I am affraid that duplicated listings take the place of other listings that never show across the sorting result pages.

    To be frank, I find sorting to be GD weakest feature by far. Setting it up is extremely confusing, I think it does not allow to do very basic things, I am never able to get it to do what I am expecting or I am looking to do, I have been unable to make “Is Featured?” sorting work and so on.

    In fact, after many hours spent testing, I reached the conclusion that the only way to make it work in a seemingly logic way is to use the “Manual Sort Order” trick, which is quite nonsense, since it implies a lot of work because it requires manually editing every listing.

    Why do not you implement an straighforward and simple to understand and use sorting system like Excel has?

    Do you plan to update the GD sorting functionality soon?

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #507153

    Guust
    Moderator
    Post count: 29970

    1) What does mean the fourth phrase “Any sorting options that you create will also be available for use with GD Listings.”?

    For example, if you enable sorting by package in the Places settings, then that option will also become available to sort listings in the GD Listings widget.

    2) With “Package” sorting option, how listings are sorted within each package group of listings? I have the impression that they are randomly sorted.

    If you do not set up secondary sorting, then the default is that newest listings will show first.

    3) I notice duplicated listings showing in succesive sorting result pages. Some listings show up to three and four times. Why is this happening and how can it be avoided? I am affraid that duplicated listings take the place of other listings that never show across the sorting result pages.

    That should not be happening. If you can give us full details how we can re-create that on your site, then we can have a look.

    To be frank, I find sorting to be GD weakest feature by far. Setting it up is extremely confusing, I think it does not allow to do very basic things, I am never able to get it to do what I am expecting or I am looking to do, I have been unable to make “Is Featured?” sorting work and so on.

    Let us know in which CPT you have been trying that, then we can check your settings.

    Thanks

    #511178

    jotomas
    Buyer
    Post count: 802

    Hi Guust,

    Thank you very much for your reply.

    I confirm that duplicated listings show in succesive listings pages, causing that some listings could show several times while other do not show at all.

    I am not sure, but I have the impression that this happens when going back and forth through the succesive archive pages one by one, but not with search results pages.

    I tried with the “A Taula” category archive page of the CPT “Menjar i beure” from the home page first category button.

    I look forward to your news.

    Thank you very much once again for your help.

    Best regards.

Viewing 15 posts - 1 through 15 (of 24 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket