Sort followed hashtags

This commit is contained in:
Lim Chee Aun 2023-04-06 00:49:32 +08:00
parent ff1a9fa444
commit f1bb1454c3

View file

@ -28,6 +28,7 @@ function FollowedHashtags() {
if (done || value?.length === 0) break; if (done || value?.length === 0) break;
tags.push(...value); tags.push(...value);
} while (true); } while (true);
tags.sort((a, b) => a.name.localeCompare(b.name));
console.log(tags); console.log(tags);
setFollowedHashtags(tags); setFollowedHashtags(tags);
setUiState('default'); setUiState('default');