{"id":15625,"date":"2017-11-06T14:00:00","date_gmt":"2017-11-06T14:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/premier_developer\/?p=15625"},"modified":"2019-02-14T20:23:17","modified_gmt":"2019-02-15T03:23:17","slug":"powerappspuzzle-sorting-selecteditems","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/powerappspuzzle-sorting-selecteditems\/","title":{"rendered":"PowerAppsPuzzle: Sorting SelectedItems"},"content":{"rendered":"<p>Premier Developer consultant <a href=\"https:\/\/www.linkedin.com\/in\/bgregor\/\" target=\"_blank\">Brian Gregor<\/a> has launched a new series on his blog called PowerAppsPuzzle where he shows examples of issues and solutions in PowerApps.&nbsp; Here\u2019s an excerpt of the first puzzle in the series:<\/p>\n<hr>\n<p>Let\u2019s take the scenario where you have a <a href=\"https:\/\/powerapps.microsoft.com\/en-us\/tutorials\/control-list-box\/\">ListBox <\/a>in a PowerApp that contains sorted information \u2013 either alphabetically or numerically, doesn\u2019t matter \u2013 similar to the following:<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/31\/2019\/04\/PA_ListBox_Numeric.png\"><img decoding=\"async\" width=\"482\" height=\"267\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/31\/2019\/04\/PA_ListBox_Numeric.png\"><\/a><\/p>\n<p>The user selects 1, then 2, then 4, and all is good, however you may notice that sometimes the values are not sorted. You may receive the values out of order like: 4,2,1 or 2,4,1.<\/p>\n<p>Check out Brian\u2019s blog <a href=\"https:\/\/blogs.msdn.microsoft.com\/briangre\/2017\/10\/04\/powerappspuzzle-sorting-selecteditems\/\" target=\"_blank\">here<\/a> for the solution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Premier Developer consultant Brian Gregor has launched a new series on his blog called PowerAppsPuzzle where he shows examples of issues and solutions in PowerApps.&nbsp; Here\u2019s an excerpt of the first puzzle in the series: Let\u2019s take the scenario where you have a ListBox in a PowerApp that contains sorted information \u2013 either alphabetically or [&hellip;]<\/p>\n","protected":false},"author":581,"featured_media":37840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[167,305,306],"class_list":["post-15625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-permierdev","tag-brian-gregor","tag-powerapps","tag-powerappspuzzle"],"acf":[],"blog_post_summary":"<p>Premier Developer consultant Brian Gregor has launched a new series on his blog called PowerAppsPuzzle where he shows examples of issues and solutions in PowerApps.&nbsp; Here\u2019s an excerpt of the first puzzle in the series: Let\u2019s take the scenario where you have a ListBox in a PowerApp that contains sorted information \u2013 either alphabetically or [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/15625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=15625"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/15625\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/37840"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=15625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=15625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=15625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}