microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
390 stars 341 forks source link

Search results - details list - icons appear on all user sort column headings #3955

Closed dgwebb closed 2 months ago

dgwebb commented 2 months ago

Version used 4.8.0.0

Describe the bug I have a search results web part defined with a default sort (RefinableString124, which is also a user sort) and 2 additional user sorts (RefinableDate10 and RefinableDate11). The web part uses the Details List layout. When one of the user sort columns is clicked, the results sort into the correct order, but the up/down arrows are displayed in all 3 column headings, which is misleading. The up/down arrow should only appear on the column that was clicked, so the user can tell which column is being sorted.

To Reproduce Detailed steps to reproduce the behavior:

  1. Add a search results web part to the page and configure the search query.
  2. Select the Details List layout.
  3. Add a default sort and additional user sorts.
  4. View the page.
  5. Click one of the user sort column headings. Observe that the search query to SharePoint is correct - it's using the right field and the opposite sort order.
  6. Observe that the up/down arrow appears in the heading of all columns that support user sort.

Expected behavior The up/down arrow appears only on the column which was clicked for sorting.

Screenshots Column configuration:

image

Initial view:

image

After clicking on "Document date" column heading:

image

Desktop (please complete the following information):

Additional context

dgwebb commented 2 months ago

Sorry, just saw that this was fixed last month. Closing.