Making WordPress.org


Ignore:
Timestamp:
01/07/2021 10:25:00 PM (4 years ago)
Author:
iandunn
Message:

Events: Weight country over preferred name when ordering.

See #5562.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r10555 r10557  
    370370        WHERE name = %s
    371371        ORDER BY
     372            FIELD( %s, country ) DESC,
    372373            alt ASC,
    373374            population > 0 DESC,
    374             FIELD( %s, country  ) DESC,
    375375            FIELD( %s, timezone ) DESC,
    376376            LEFT( type, 1 ) = "P" DESC,
     
    394394            WHERE name LIKE %s
    395395            ORDER BY
     396                FIELD( %s, country ) DESC,
    396397                alt ASC,
    397398                population > 0 DESC,
    398                 FIELD( %s, country  ) DESC,
    399399                FIELD( %s, timezone ) DESC,
    400400                LEFT( type, 1 ) = "P" DESC,
     
    415415    return $row;
    416416}
    417 
    418417
    419418/**
Note: See TracChangeset for help on using the changeset viewer.