{"id":8718,"date":"2020-04-02T11:17:15","date_gmt":"2020-04-02T15:17:15","guid":{"rendered":"https:\/\/www.med.unc.edu\/webguide\/?page_id=8718"},"modified":"2025-11-18T09:47:14","modified_gmt":"2025-11-18T14:47:14","slug":"alphabetical-sort-order-not-working","status":"publish","type":"page","link":"https:\/\/www.med.unc.edu\/webguide\/userguide\/people-directory\/old-people-directory\/alphabetical-sort-order-not-working\/","title":{"rendered":"Alphabetical Sort Order Not Working?"},"content":{"rendered":"<p>A <a href=\"https:\/\/www.med.unc.edu\/webguide\/userguide\/people-directory\/gallery\/\">gallery of people profiles<\/a> will automatically list the profiles alphabetically by last name.\u00a0 There are two things that can affect this order:<\/p>\n<h2>Reverse Display Name<\/h2>\n<p>The\u00a0alphabetical sort order keys off of the <strong>Reverse Display Name<\/strong> field. If this field is left blank, the gallery will not sort properly.<\/p>\n<p><span class=\"imgBorderMed\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8720\" src=\"https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/reverse-display-name.png\" alt=\"example reverse display name field\" width=\"600\" height=\"359\" srcset=\"https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/reverse-display-name.png 1000w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/reverse-display-name-300x179.png 300w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/reverse-display-name-768x459.png 768w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/reverse-display-name-600x359.png 600w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/span><\/p>\n<p>&nbsp;<\/p>\n<h2>Override and Sort Order<\/h2>\n<p><strong>Override Alphabetical Sort<\/strong>: check this option if the person should have priority placement in\u00a0<a href=\"https:\/\/www.med.unc.edu\/webguide\/userguide\/people-directory\/gallery\/\">gallery view<\/a>.\u00a0 This option is often used for department chairs and center directors. It will place them ahead of everyone else in the gallery view. All other profiles will display alphabetically by last name after the prioritized profiles.<\/p>\n<p><strong>Sort Order<\/strong>: allows you to specify the order when multiple profiles have been given priority with the override alphabetical sort option.<\/p>\n<p><span class=\"imgBorderMed\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-8721\" src=\"https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/override-sort-order-1024x251.png\" alt=\"example override and sort order fields\" width=\"1024\" height=\"251\" srcset=\"https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/override-sort-order-1024x251.png 1024w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/override-sort-order-300x74.png 300w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/override-sort-order-768x188.png 768w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/override-sort-order-1536x377.png 1536w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/override-sort-order-600x147.png 600w, https:\/\/www.med.unc.edu\/webguide\/wp-content\/uploads\/sites\/419\/2020\/04\/override-sort-order.png 1818w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A gallery of people profiles will automatically list the profiles alphabetically by last name.\u00a0 There are two things that can affect this order: Reverse Display Name The\u00a0alphabetical sort order keys off of the Reverse Display Name field. If this field is left blank, the gallery will not sort properly. &nbsp; Override and Sort Order Override &hellip; <a href=\"https:\/\/www.med.unc.edu\/webguide\/userguide\/people-directory\/old-people-directory\/alphabetical-sort-order-not-working\/\" aria-label=\"Read more about Alphabetical Sort Order Not Working?\">Read more<\/a><\/p>\n","protected":false},"author":3206,"featured_media":0,"parent":13464,"menu_order":8,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"layout":"","cellInformation":"","apiCallInformation":"","footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-8718","page","type-page","status-publish","hentry","odd"],"acf":[],"_links_to":[],"_links_to_target":[],"_links":{"self":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/8718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/users\/3206"}],"replies":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/comments?post=8718"}],"version-history":[{"count":1,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/8718\/revisions"}],"predecessor-version":[{"id":14944,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/8718\/revisions\/14944"}],"up":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/13464"}],"wp:attachment":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/media?parent=8718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}