{"id":311,"date":"2026-06-23T19:14:41","date_gmt":"2026-06-23T19:14:41","guid":{"rendered":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/"},"modified":"2026-07-03T13:47:51","modified_gmt":"2026-07-03T13:47:51","slug":"document-library-sort-options","status":"publish","type":"doc","link":"https:\/\/documentlibrary.pro\/de\/docs\/document-library-sort-options\/","title":{"rendered":"Document library sort options"},"content":{"rendered":"<p>Hosted Document Library Pro gives you two ways to control how a library is ordered when it first loads. You set both in the Library Builder. Once the library has loaded, visitors can click a column heading to re-sort by that column.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/school-document-management-library.jpg\" alt=\"Document library sort options via the arrows in each column heading\"\/><\/p>\n<h2 id=\"sort-by\">Sort by<\/h2>\n<p>The Sort by setting decides which column orders the library when it first appears. It defaults to the publish date. You can order by any column in the library, or by any of these:<\/p>\n<ul>\n<li><strong>ID.<\/strong> Sort by document ID.<\/li>\n<li><strong>Title.<\/strong> Sort by document title.<\/li>\n<li><strong>Menu order.<\/strong> Sort by the document&#8217;s set order.<\/li>\n<li><strong>Date.<\/strong> Sort by the publish date.<\/li>\n<li><strong>Name.<\/strong> Sort by the document slug.<\/li>\n<li><strong>Modified.<\/strong> Sort by the last modified date.<\/li>\n<li><strong>Random.<\/strong> Show the documents in a random order.<\/li>\n<\/ul>\n<h2 id=\"sort-order\">Sort order<\/h2>\n<p>The Sort order setting controls the direction of that initial sort, either ascending or descending. It defaults to descending for date-based sorting and ascending for everything else, and you can override it in the Library Builder. For an A to Z list of documents, the ascending default is what you want.<\/p>\n<h2 id=\"how-to-sort-by-date-or-number\">How to sort by date or number<\/h2>\n<p>With the table layout, you can sort taxonomy columns by number or by date. Open the advanced options for that column in the column builder and change the Column type to Number or Date. You may also want to adjust the <a href=\"https:\/\/documentlibrary.pro\/de\/docs\/document-library-dates\/\">date format<\/a>.<\/p>\n<h2 id=\"can-i-sort-by-multiple-columns\">Can I sort by multiple columns?<\/h2>\n<p>Yes. Switch on the Multi-column sorting option on the settings and design page for your library to let visitors sort by up to two columns at a time. The library is sorted by the first column, and any documents with the same value are then sorted by the second column. This is useful when two fields matter together, such as category and date.<\/p>\n<h2 id=\"sorting-folders\">Sorting folders<\/h2>\n<p>Hosted Document Library Pro also has a <a href=\"https:\/\/documentlibrary.pro\/de\/docs\/document-folders\/\">Ordner<\/a> option, where documents appear inside folders based on their categories. In the Library Builder you can order the folders by name, category ID, category slug, category order or document count, and choose ascending or descending. For example, ordering by count in descending order lists the folders holding the most documents first.<\/p>\n<h2 id=\"sorting-the-content-of-category-and-taxonomy-columns\">Sorting the content of category and taxonomy columns<\/h2>\n<p>When a document has more than one term selected for a category or taxonomy, those terms appear as a comma-separated list in that column, ordered alphabetically. For example, a document in three categories might show as &#8220;Presentations, Training, Videos&#8221;.<\/p>","protected":false},"excerpt":{"rendered":"<p>Set which column orders your hosted document library on load, the sort direction, and how to order folders.<\/p>","protected":false},"menu_order":0,"template":"","meta":{"footnotes":""},"doc_category":[4],"class_list":["post-311","doc","type-doc","status-publish","hentry","doc_category-building-your-library"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Document library sort options<\/title>\n<meta name=\"description\" content=\"Set which column orders your hosted document library on load, the sort direction, and how to order folders.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/documentlibrary.pro\/de\/docs\/document-library-sort-options\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Document library sort options\" \/>\n<meta property=\"og:description\" content=\"Set which column orders your hosted document library on load, the sort direction, and how to order folders.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/documentlibrary.pro\/de\/docs\/document-library-sort-options\/\" \/>\n<meta property=\"og:site_name\" content=\"Document Library Pro\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-03T13:47:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/school-document-management-library.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/\",\"name\":\"Document library sort options\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/school-document-management-library.jpg\",\"datePublished\":\"2026-06-23T19:14:41+00:00\",\"dateModified\":\"2026-07-03T13:47:51+00:00\",\"description\":\"Set which column orders your hosted document library on load, the sort direction, and how to order folders.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/#primaryimage\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/school-document-management-library.jpg\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/school-document-management-library.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/document-library-sort-options\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/documentlibrary.pro\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Document library sort options\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#website\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"name\":\"Document Library Pro\",\"description\":\"Searchable document libraries for any website\",\"publisher\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/documentlibrary.pro\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#organization\",\"name\":\"Document Library Pro\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"contentUrl\":\"https:\\\/\\\/documentlibrary.pro\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/favicon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Document Library Pro\"},\"image\":{\"@id\":\"https:\\\/\\\/documentlibrary.pro\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"description\":\"Document Library Pro is hosted document library software that lets you publish searchable, filterable libraries of PDFs, documents and resources on any website or platform.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Document library sort options","description":"Set which column orders your hosted document library on load, the sort direction, and how to order folders.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/documentlibrary.pro\/de\/docs\/document-library-sort-options\/","og_locale":"de_DE","og_type":"article","og_title":"Document library sort options","og_description":"Set which column orders your hosted document library on load, the sort direction, and how to order folders.","og_url":"https:\/\/documentlibrary.pro\/de\/docs\/document-library-sort-options\/","og_site_name":"Document Library Pro","article_modified_time":"2026-07-03T13:47:51+00:00","og_image":[{"url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/school-document-management-library.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/","url":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/","name":"Document library sort options","isPartOf":{"@id":"https:\/\/documentlibrary.pro\/#website"},"primaryImageOfPage":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/#primaryimage"},"image":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/#primaryimage"},"thumbnailUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/school-document-management-library.jpg","datePublished":"2026-06-23T19:14:41+00:00","dateModified":"2026-07-03T13:47:51+00:00","description":"Set which column orders your hosted document library on load, the sort direction, and how to order folders.","breadcrumb":{"@id":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/"]}]},{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/#primaryimage","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/school-document-management-library.jpg","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/07\/school-document-management-library.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/documentlibrary.pro\/docs\/document-library-sort-options\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/documentlibrary.pro\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/documentlibrary.pro\/docs\/"},{"@type":"ListItem","position":3,"name":"Document library sort options"}]},{"@type":"WebSite","@id":"https:\/\/documentlibrary.pro\/#website","url":"https:\/\/documentlibrary.pro\/","name":"Document Library Pro","description":"Durchsuchbare Dokumentenbibliotheken f\u00fcr jede Website","publisher":{"@id":"https:\/\/documentlibrary.pro\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/documentlibrary.pro\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de-DE"},{"@type":"Organization","@id":"https:\/\/documentlibrary.pro\/#organization","name":"Document Library Pro","url":"https:\/\/documentlibrary.pro\/","logo":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/","url":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","contentUrl":"https:\/\/documentlibrary.pro\/wp-content\/uploads\/2026\/06\/favicon-512.png","width":512,"height":512,"caption":"Document Library Pro"},"image":{"@id":"https:\/\/documentlibrary.pro\/#\/schema\/logo\/image\/"},"description":"Document Library Pro ist eine gehostete Dokumentenbibliothekssoftware, mit der Sie durchsuchbare, filterbare Bibliotheken mit PDFs, Dokumenten und Ressourcen auf jeder Website oder Plattform ver\u00f6ffentlichen k\u00f6nnen."}]}},"_links":{"self":[{"href":"https:\/\/documentlibrary.pro\/de\/wp-json\/wp\/v2\/doc\/311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentlibrary.pro\/de\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/documentlibrary.pro\/de\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":2,"href":"https:\/\/documentlibrary.pro\/de\/wp-json\/wp\/v2\/doc\/311\/revisions"}],"predecessor-version":[{"id":584,"href":"https:\/\/documentlibrary.pro\/de\/wp-json\/wp\/v2\/doc\/311\/revisions\/584"}],"wp:attachment":[{"href":"https:\/\/documentlibrary.pro\/de\/wp-json\/wp\/v2\/media?parent=311"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/documentlibrary.pro\/de\/wp-json\/wp\/v2\/doc_category?post=311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}