Is there a way to display search items in reverse order? This is what I have attempted so far:
let newSearchTerm = this.getItem(this.searchHistoryKey)
newSearchTerm.push({
'q': this.searchTerm
});
this.setItem(this.searchHistoryKey, JSON.stringify(newSearchTerm));
<li *ngFor="let search of searchHistory"><span th-icon th-time>icon</span><a href="/"><label for="">{{search.q}}</label></a><span (click)="addHistory()" th-icon arrow-up>icon</span></li>
Any suggestions on how to display the search results in reverse order?