Skip to content

Commit

Permalink
Update owner name search results sort order. (#2024)
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Lovett <doug@diamante.ca>
  • Loading branch information
doug-lovett authored Sep 16, 2024
1 parent 268922d commit 7e83fa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mhr_api/src/mhr_api/models/search_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,14 @@
business_name, owner_status_type
FROM mhr_search_owner_bus_vw
WHERE compressed_name LIKE mhr_name_compressed_key(:query_value) || '%'
"""
ORDER BY business_name ASC, owner_status_type ASC, status_type ASC, mhr_number DESC
"""
SEARCH_OWNER_IND_QUERY = """
SELECT mhr_number, status_type, registration_ts, city, serial_number, year_made, make, model, id,
owner_status_type, last_name, first_name, middle_name
FROM mhr_search_owner_ind_vw
WHERE compressed_name LIKE mhr_name_compressed_key(:query_value) || '%'
ORDER BY last_name ASC, first_name ASC, middle_name ASC, owner_status_type ASC, status_type ASC, mhr_number DESC
"""


Expand Down
2 changes: 1 addition & 1 deletion mhr_api/src/mhr_api/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
Development release segment: .devN
"""

__version__ = '1.8.22' # pylint: disable=invalid-name
__version__ = '1.8.23' # pylint: disable=invalid-name

0 comments on commit 7e83fa8

Please sign in to comment.