Menu

#1124 Change all queries used in overview to sort results descending

1.2
closed-fixed
nobody
5
2011-01-08
2010-10-21
jfirechief
No

DO NOT EDIT OR ANSWER THIS ISSUE. SEE THE ORIGINAL ISSUE INSTEAD:
https://www.jfire.org/modules/bugs/view.php?id=1795
ORIGINAL REPORTER: alex

They should be sorted descending by the creation timestamp, so in every search result the newest one will be first.

More importantly, by doing this the results of the overview queries
with a range (or limit) will return the newest data-sets instead of
the last ones or a random order. A limit is set by default in the overview.

Please apply this to all queries used in the overview (Order, Offer, Invoice, Delivery).

Note that this is not about sorting the list in the client, it's about the client having the correct results...

Discussion

  • jfirechief

    jfirechief - 2010-10-21
    • labels: --> JFireTrade
    • milestone: --> 1.2
    • status: open --> open-fixed
     
  • jfirechief

    jfirechief - 2010-10-21

    ORIGINAL COMMENT BY marco, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1795

    > They should be sorted descending by the appropriate id
    > (offerID, InvoiceID etc) so in every search result the
    > newest one will be first.

    Sorry, but that's wrong (and does not work) because of the prefix. Since the prefix can be arbitrarily chosen (e.g. "myproject-xy"), we cannot use the identifiers for the sorting at all.

    It is therefore necessary to instead order by the creation timestamp! I changed the description appropriately.

     
  • jfirechief

    jfirechief - 2010-10-21

    ORIGINAL COMMENT BY fitas_java, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1795

    changed the query to return the first created article container, also in the table lists the results are displayed by descending order.

     
  • jfirechief

    jfirechief - 2011-01-08
    • status: open-fixed --> closed-fixed
     
  • jfirechief

    jfirechief - 2011-01-08

    ORIGINAL COMMENT BY marco, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1795

    > They should be sorted descending by the appropriate id
    > (offerID, InvoiceID etc) so in every search result the
    > newest one will be first.

    Sorry, but that's wrong (and does not work) because of the prefix. Since the prefix can be arbitrarily chosen (e.g. "myproject-xy"), we cannot use the identifiers for the sorting at all.

    It is therefore necessary to instead order by the creation timestamp! I changed the description appropriately.

     
  • jfirechief

    jfirechief - 2011-01-08

    ORIGINAL COMMENT BY fitas_java, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1795

    changed the query to return the first created article container, also in the table lists the results are displayed by descending order.

     
  • jfirechief

    jfirechief - 2011-01-08

    ORIGINAL COMMENT BY alex, VIEW IT HERE:
    https://www.jfire.org/modules/bugs/view.php?id=1795

    Review functionality: Works as described

     

Log in to post a comment.

MongoDB Logo MongoDB