This method will used for realtime ranklist, not status list. I'll rename
it soon.

In
trunk/src/main/java/cn/edu/uestc/acmicpc/web/oj/controller/contest/ContestController.java:

> +    Map<String, Object> json = new HashMap<>();
> +    try {
> +      UserDTO currentUser = getCurrentUser(session);
> +      ContestShowDTO contestShowDTO = contestService.getContestShowDTOByContestId(contestId);
> +      if (contestShowDTO == null) {
> +        throw new AppException("No such contest.");
> +      }
> +      if (!contestShowDTO.getIsVisible() && currentUser.getType() != Global.AuthenticationType.ADMIN.ordinal()) {
> +        throw new AppException("No such contest.");
> +      }
> +
> +      StatusCondition statusCondition = new StatusCondition();
> +      statusCondition.contestId = contestShowDTO.getContestId();
> +      // Sort by time
> +      statusCondition.orderFields = "time";
> +      statusCondition.orderAsc = "true";

I don't think orderAsc can be true. In general, the latest(has bigger time)
status should be appear first in status list.

--
Reply to this email directly or view it on
GitHub<https://github.com/UESTC-ACM/CDOJ/pull/36/files#r9975929>
.