Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
f2435152
Commit
f2435152
authored
Mar 14, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #950 (sorting order in comics)
parent
1d40434d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
archive.js
cps/static/js/archive/archive.js
+4
-2
No files found.
cps/static/js/archive/archive.js
View file @
f2435152
...
...
@@ -40,7 +40,8 @@ function alphanumCase(a, b) {
while
(
i
=
(
j
=
t
.
charAt
(
x
++
)).
charCodeAt
(
0
))
{
var
m
=
(
i
===
46
||
(
i
>=
48
&&
i
<=
57
));
if
(
m
!==
n
)
{
// Compare has to be with != otherwise fails
if
(
m
!=
n
)
{
tz
[
++
y
]
=
""
;
n
=
m
;
}
...
...
@@ -55,7 +56,8 @@ function alphanumCase(a, b) {
for
(
var
x
=
0
;
aa
[
x
]
&&
bb
[
x
];
x
++
)
{
if
(
aa
[
x
]
!==
bb
[
x
])
{
var
c
=
Number
(
aa
[
x
]),
d
=
Number
(
bb
[
x
]);
if
(
c
===
aa
[
x
]
&&
d
===
bb
[
x
])
{
// Compare has to be with == otherwise fails
if
(
c
==
aa
[
x
]
&&
d
==
bb
[
x
])
{
return
c
-
d
;
}
else
{
return
(
aa
[
x
]
>
bb
[
x
])
?
1
:
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment