Merge pull request #770 from lbryio/issue/614
Fixed sorting by title for published files (#614)
This commit is contained in:
commit
aa42b76b79
2 changed files with 5 additions and 4 deletions
|
@ -19,6 +19,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
|
||||||
* Long channel names causing inconsistent thumbnail sizes (#721)
|
* Long channel names causing inconsistent thumbnail sizes (#721)
|
||||||
* Fixed regression in #697 causing transaction screen to not load for new users (#755)
|
* Fixed regression in #697 causing transaction screen to not load for new users (#755)
|
||||||
* Fixed scriolling restore/reset/set (#729)
|
* Fixed scriolling restore/reset/set (#729)
|
||||||
|
* Fixed sorting by title for published files (#614)
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
*
|
*
|
||||||
|
|
|
@ -18,11 +18,11 @@ class FileList extends React.PureComponent {
|
||||||
},
|
},
|
||||||
title: function(fileInfos) {
|
title: function(fileInfos) {
|
||||||
return fileInfos.slice().sort(function(fileInfo1, fileInfo2) {
|
return fileInfos.slice().sort(function(fileInfo1, fileInfo2) {
|
||||||
const title1 = fileInfo1.metadata
|
const title1 = fileInfo1.value
|
||||||
? fileInfo1.metadata.stream.metadata.title.toLowerCase()
|
? fileInfo1.value.stream.metadata.title.toLowerCase()
|
||||||
: fileInfo1.name;
|
: fileInfo1.name;
|
||||||
const title2 = fileInfo2.metadata
|
const title2 = fileInfo2.value
|
||||||
? fileInfo2.metadata.stream.metadata.title.toLowerCase()
|
? fileInfo2.value.stream.metadata.title.toLowerCase()
|
||||||
: fileInfo2.name;
|
: fileInfo2.name;
|
||||||
if (title1 < title2) {
|
if (title1 < title2) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue