ita-social-projects / TeachUA

The project aims to promote the Ukrainian language for study clubs in Russian-speaking regions of Ukraine. This is a web application that contains a database of clubs with the Ukrainian language of instruction. Clubs have the opportunity to register on the site and provide information about themselves. Users can search for clubs by various parameters (activity type, location, etc.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Advanced search] The results of sorting centers by name DESC on the site and in the DB is different

IrenZh opened this issue · comments

Environment: MacBook Pro 13-inch, 2015 Версія 12.3.1
Google Chrome Версія 109.0.5414.119 (x86_64)
Reproducible: always

Preconditions
Open the main page of the https://speak-ukrainian.org.ua/dev site

Steps to reproduce

  1. Click on the 'Розширений пошук' icon next to the search field
  2. Click on 'Центр' radio button
  3. Click on the '↑' icon in the 'Сортувати' bar
  4. Verify that the order of centers is the same in the DB
    TD(SELECT id, name FROM centers ORDER BY name DESC LIMIT 6;)

Actual result
The results of sorting centers by name DESC on the site and in the DB is different

Expected result
The results of sorting centers by name DESC on the site and in the DB is the same

Знімок екрана 2023-03-22 о 22 47 10

Знімок екрана 2023-03-22 о 22 46 22

TUA-440

commented

Hello! This may not be a bug! Check with the developers.
Sorting in a database and on a website can differ based on the database's sorting mechanism and how the website's code implements sorting algorithms to manipulate the data for display.