mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-24 00:46:27 +03:00
fix sorting
This commit is contained in:
parent
2975b311fc
commit
7a5391b8df
@ -23,7 +23,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.5.5",
|
||||
"@esteemapp/esteem-render-helpers": "^1.3.3",
|
||||
"@esteemapp/esteem-render-helpers": "^1.3.5",
|
||||
"@esteemapp/react-native-autocomplete-input": "^4.2.1",
|
||||
"@esteemapp/react-native-modal-popover": "^0.0.14",
|
||||
"@esteemapp/react-native-multi-slider": "^1.1.0",
|
||||
|
@ -7,6 +7,7 @@ for (i = 0; i < images.length; i++) {
|
||||
}
|
||||
var resultStr = JSON.stringify(JSON.stringify(result)); // workaround
|
||||
var message = 'window.ReactNativeWebView.postMessage(' + resultStr + ')';
|
||||
|
||||
images[i].setAttribute("onClick", message);
|
||||
}
|
||||
|
||||
|
@ -109,13 +109,14 @@ const BookmarksContainer = ({ currentAccount, intl, navigation }) => {
|
||||
}
|
||||
};
|
||||
|
||||
const _sortData = data =>
|
||||
data.sort((a, b) => {
|
||||
const dateA = new Date(a.created).getTime();
|
||||
const dateB = new Date(b.created).getTime();
|
||||
const _sortData = data => {
|
||||
return data.sort((a, b) => {
|
||||
const dateA = a.timestamp;
|
||||
const dateB = b.timestamp;
|
||||
|
||||
return dateB > dateA ? 1 : -1;
|
||||
return dateB - dateA;
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<BookmarksScreen
|
||||
|
21
yarn.lock
21
yarn.lock
@ -1113,12 +1113,13 @@
|
||||
exec-sh "^0.3.2"
|
||||
minimist "^1.2.0"
|
||||
|
||||
"@esteemapp/esteem-render-helpers@^1.3.3":
|
||||
version "1.3.3"
|
||||
resolved "https://registry.yarnpkg.com/@esteemapp/esteem-render-helpers/-/esteem-render-helpers-1.3.3.tgz#89dc392bcbd98fd18fd2fccc4bf33fb0b29b560d"
|
||||
integrity sha512-WF8sCyP1R2NN3a+4phmfyTX5EvY4fleuGEWEZcik2Hps2sDUIzUugP1C3TAH+roEZ13VEVTST77THvkDSe1ssw==
|
||||
"@esteemapp/esteem-render-helpers@^1.3.5":
|
||||
version "1.3.5"
|
||||
resolved "https://registry.yarnpkg.com/@esteemapp/esteem-render-helpers/-/esteem-render-helpers-1.3.5.tgz#85cac7e1d1622ea45f2f41b3ae4de8f768d0e1a6"
|
||||
integrity sha512-mhRoFPjtSDjwxvCUgM6y+8WfibVVwkWUSNBK7PhUHkL3PQYy+IthL89b7QIWHkSQo6A9yGhJxXwWM3n6ZQ/xnA==
|
||||
dependencies:
|
||||
he "^1.2.0"
|
||||
lru-cache "^5.1.1"
|
||||
path "^0.12.7"
|
||||
remarkable "^1.7.3"
|
||||
sanitize-html "^1.20.1"
|
||||
@ -6089,6 +6090,13 @@ lru-cache@^4.0.1, lru-cache@^4.1.2, lru-cache@^4.1.5:
|
||||
pseudomap "^1.0.2"
|
||||
yallist "^2.1.2"
|
||||
|
||||
lru-cache@^5.1.1:
|
||||
version "5.1.1"
|
||||
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
|
||||
integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
|
||||
dependencies:
|
||||
yallist "^3.0.2"
|
||||
|
||||
make-dir@^2.0.0, make-dir@^2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5"
|
||||
@ -9704,6 +9712,11 @@ yallist@^2.1.2:
|
||||
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
|
||||
integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=
|
||||
|
||||
yallist@^3.0.2:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
|
||||
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
|
||||
|
||||
yargs-parser@^11.1.1:
|
||||
version "11.1.1"
|
||||
resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-11.1.1.tgz#879a0865973bca9f6bab5cbdf3b1c67ec7d3bcf4"
|
||||
|
Loading…
Reference in New Issue
Block a user