This commit is contained in:
Henry Jameson 2019-01-25 01:39:19 +03:00
parent 63df815dd9
commit f48e3d0db8
3 changed files with 6 additions and 6 deletions

View file

@ -4,8 +4,8 @@ import Status from '../status/status.vue'
const sortById = (a, b) => {
const seqA = Number(a.action.id)
const seqB = Number(b.action.id)
const isSeqA = Number.isNaN(seqA)
const isSeqB = Number.isNaN(seqB)
const isSeqA = !Number.isNaN(seqA)
const isSeqB = !Number.isNaN(seqB)
if (isSeqA && isSeqB) {
return seqA > seqB ? -1 : 1
} else if (isSeqA && !isSeqB) {

View file

@ -84,8 +84,8 @@ const mergeOrAdd = (arr, obj, item) => {
const sortById = (a, b) => {
const seqA = Number(a.id)
const seqB = Number(b.id)
const isSeqA = Number.isNaN(seqA)
const isSeqB = Number.isNaN(seqB)
const isSeqA = !Number.isNaN(seqA)
const isSeqB = !Number.isNaN(seqB)
if (isSeqA && isSeqB) {
return seqA > seqB ? -1 : 1
} else if (isSeqA && !isSeqB) {

View file

@ -12,8 +12,8 @@ export const visibleTypes = store => ([
const sortById = (a, b) => {
const seqA = Number(a.action.id)
const seqB = Number(b.action.id)
const isSeqA = Number.isNaN(seqA)
const isSeqB = Number.isNaN(seqB)
const isSeqA = !Number.isNaN(seqA)
const isSeqB = !Number.isNaN(seqB)
if (isSeqA && isSeqB) {
return seqA > seqB ? -1 : 1
} else if (isSeqA && !isSeqB) {