sort saved

This commit is contained in:
Ryan Stafford 2024-05-12 00:14:39 -04:00
parent 87a7662c94
commit 9fc7c1380b

View file

@ -160,6 +160,9 @@ func (p State) SortBy(v string) string {
if p.Query != "" || p.SearchType == "Communities" { if p.Query != "" || p.SearchType == "Communities" {
q = "q=" + url.QueryEscape(p.Query) + "&communityname=" + p.CommunityName + "&username=" + p.UserName + "&searchtype=" + p.SearchType + "&" q = "q=" + url.QueryEscape(p.Query) + "&communityname=" + p.CommunityName + "&username=" + p.UserName + "&searchtype=" + p.SearchType + "&"
} }
if p.Op == "Saved" {
q = "view=Saved&"
}
return "?" + q + "sort=" + v + "&listingType=" + p.Listing return "?" + q + "sort=" + v + "&listingType=" + p.Listing
} }
func (p State) ListBy(v string) string { func (p State) ListBy(v string) string {