apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
74 stars 33 forks source link

Sort by 'Recency' and select ascending/descending order shows incorrect results #1283

Closed saralavanip closed 6 years ago

saralavanip commented 8 years ago

Steps

  1. Visit https://nightly.apinf.io
  2. Login as registered user
  3. Go to catalog view
  4. Select sorting option and order (eg. 'Recency' and 'ascending' order)
  5. Click on 'Show all'

Expected Result

It must show APIs based on time stamp: starting from newest to oldest

Findings

Operating system

Linux : Ubuntu 14.04.03 LTS (Trusty)

Browser

  1. Google Chrome 48.0.2564.103
  2. Mozilla Firefox 44.0

Screenshot

incorrect_order_ascending

incorrect_order

recency_ascending_bookmarks

saralavanip commented 7 years ago

@baijat, verified on https://nightly.apinf.io and it is reproducible.

Screenshots:

Ascending order: selection_088

Descending order:
selection_087

brylie commented 7 years ago

@saralavanip please describe further your expectations of 'ascending' and 'descending'. Given the following two dates, how would they sort with 'ascending' and 'descending'?

saralavanip commented 7 years ago

@brylie , my understanding with regard to ascending and descending order of display is :

If Date and Time format is mm/dd/yyyy and hh:mm:ss
Ascending order : oldest -> newest (eg. January 1, 2016 -> December 31, 2016 )

Descending order : newest -> oldest (eg. December 31, 2016 -> January 1, 2016)

brylie commented 7 years ago

@saralavanip, thanks for the clarification.