Trim titles before alphabetical ListPage sorting

This commit is contained in:
G.Ambatte committed 2023-06-29 16:30:06 +12:00
1 parent a5885c8f4f
commit 4ded080a58
1 file changed
+1 -1
@@ -89,7 +89,7 @@ const ListPage = createClass({
sortBrewOrder : function(brew){
if(!brew.title){brew.title = 'No Title';}
const mapping = {
'alpha' : _.deburr(brew.title.toLowerCase()),
'alpha' : _.deburr(brew.title.trim().toLowerCase()),
'created' : moment(brew.createdAt).format(),
'updated' : moment(brew.updatedAt).format(),
'views' : brew.views,