From 033037e61cb15aa0280f69be0da560f74a5cdd03 Mon Sep 17 00:00:00 2001
From: Sean Yesmunt <sean@lbry.io>
Date: Thu, 20 Jun 2019 00:06:16 -0400
Subject: [PATCH] fix: sorting on 'library' page

---
 src/ui/component/claimList/view.jsx | 2 +-
 static/locales/en.json              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ui/component/claimList/view.jsx b/src/ui/component/claimList/view.jsx
index 7ce272d1f..c8f26e0f3 100644
--- a/src/ui/component/claimList/view.jsx
+++ b/src/ui/component/claimList/view.jsx
@@ -26,7 +26,7 @@ type Props = {
 export default function ClaimList(props: Props) {
   const { uris, headerAltControls, injectedItem, loading, persistedStorageKey, empty, meta, type, header } = props;
   const [currentSort, setCurrentSort] = usePersistedState(persistedStorageKey, SORT_NEW);
-  const sortedUris = uris && currentSort === SORT_OLD ? uris.reverse() : uris;
+  const sortedUris = uris && currentSort === SORT_NEW ? uris.slice().reverse() : uris;
   const hasUris = uris && !!uris.length;
 
   function handleSortChange() {
diff --git a/static/locales/en.json b/static/locales/en.json
index ea9c355a8..782920778 100644
--- a/static/locales/en.json
+++ b/static/locales/en.json
@@ -294,4 +294,4 @@
   "Post": "Post",
   "Channel": "Channel",
   "No modifier provided after separator %s.": "No modifier provided after separator %s."
-}
\ No newline at end of file
+}