{"id":2769,"date":"2018-02-24T13:00:34","date_gmt":"2018-02-24T13:00:34","guid":{"rendered":"http:\/\/www.kebablog.co.uk\/?p=2769"},"modified":"2018-02-24T15:32:15","modified_gmt":"2018-02-24T15:32:15","slug":"should-bill-be-first","status":"publish","type":"post","link":"http:\/\/www.kebablog.co.uk\/?p=2769","title":{"rendered":"Should Bill be first?"},"content":{"rendered":"<p>One of my exciting tasks at Yardley Photographic Society is collecting and sorting the digital images for the various competitions. \u00a0 It&#8217;s a fairly simple thing, but when it comes to the competitions well, should Bill* always be first in the list?<\/p>\n<p>I&#8217;ve tried sorting it by title, that often doesn&#8217;t work out. \u00a0So with this in mind I&#8217;ve started to randomise things a bit. \u00a0 At first I sort the names for the photographers (I add the titles afterwards) in Alphabetical order.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-2770\" src=\"http:\/\/www.kebablog.co.uk\/blogpics\/uploads\/Screen-Shot-2018-02-24-at-12.34.02.jpg\" alt=\"\" width=\"491\" height=\"322\" srcset=\"http:\/\/www.kebablog.co.uk\/blogpics\/uploads\/Screen-Shot-2018-02-24-at-12.34.02.jpg 600w, http:\/\/www.kebablog.co.uk\/blogpics\/uploads\/Screen-Shot-2018-02-24-at-12.34.02-300x197.jpg 300w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/p>\n<p>So in this case Bill is first (although I&#8217;ve only sorted for the first name). \u00a0Next to Bill&#8217;s name is a random number created using the\u00a0=RAND() command in numbers (Mac OS) &#8211; This assigns a random number which is then sorted into numerical order.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-2771\" src=\"http:\/\/www.kebablog.co.uk\/blogpics\/uploads\/Screen-Shot-2018-02-24-at-12.34.29.jpg\" alt=\"\" width=\"602\" height=\"396\" srcset=\"http:\/\/www.kebablog.co.uk\/blogpics\/uploads\/Screen-Shot-2018-02-24-at-12.34.29.jpg 602w, http:\/\/www.kebablog.co.uk\/blogpics\/uploads\/Screen-Shot-2018-02-24-at-12.34.29-300x197.jpg 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>Once randomised I correct the Image number and add the titles &#8211; the order is repeated for the second segment of the list. \u00a0 The order of which titles go in the first or second list it purely done in the order they are displayed in finder.<\/p>\n<p>So there you go, answers to questions you didn&#8217;t know &#8211; or possibly care about!<\/p>\n<p>&nbsp;<\/p>\n<p>*Occasionally it&#8217;s Angela, but she&#8217;s not had any entries in the mono comp which I&#8217;m currently compiling.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of my exciting tasks at Yardley Photographic Society is collecting and sorting the digital images for the various competitions. \u00a0 It&#8217;s a fairly simple thing, but when it comes to the competitions well, should Bill* always be first in the list? I&#8217;ve tried sorting it by title, that often doesn&#8217;t work out. \u00a0So with &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.kebablog.co.uk\/?p=2769\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Should Bill be first?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[412,411],"tags":[],"_links":{"self":[{"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2769"}],"collection":[{"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2769"}],"version-history":[{"count":4,"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2769\/revisions"}],"predecessor-version":[{"id":2775,"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2769\/revisions\/2775"}],"wp:attachment":[{"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2769"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kebablog.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}