Merged in fix/SW-2620-sort-destinations-locale (pull request #2017)
fix(SW-2620): sort destinations based on current locale * fix(SW-2620): sort destinations based on current locale Approved-by: Christian Andolf
This commit is contained in:
@@ -27,7 +27,7 @@ export default async function Destination({
|
||||
<div className={styles.container}>
|
||||
<ul className={styles.citiesList}>
|
||||
{cities
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.sort((a, b) => a.name.localeCompare(b.name, intl.locale))
|
||||
.map((city) =>
|
||||
city.hotelCount > 0 ? (
|
||||
<li key={city.id}>
|
||||
|
||||
Reference in New Issue
Block a user