{"action":"created","issue":{"url":"https://api.github.com/repos/Shazwazza/Examine/issues/64","repository_url":"https://api.github.com/repos/Shazwazza/Examine","labels_url":"https://api.github.com/repos/Shazwazza/Examine/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/Shazwazza/Examine/issues/64/comments","events_url":"https://api.github.com/repos/Shazwazza/Examine/issues/64/events","html_url":"https://github.com/Shazwazza/Examine/issues/64","id":198304910,"number":64,"title":"OrderBy string is case sensitive","user":{"login":"mahgo","id":4499646,"avatar_url":"https://avatars.githubusercontent.com/u/4499646?v=3","gravatar_id":"","url":"https://api.github.com/users/mahgo","html_url":"https://github.com/mahgo","followers_url":"https://api.github.com/users/mahgo/followers","following_url":"https://api.github.com/users/mahgo/following{/other_user}","gists_url":"https://api.github.com/users/mahgo/gists{/gist_id}","starred_url":"https://api.github.com/users/mahgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahgo/subscriptions","organizations_url":"https://api.github.com/users/mahgo/orgs","repos_url":"https://api.github.com/users/mahgo/repos","events_url":"https://api.github.com/users/mahgo/events{/privacy}","received_events_url":"https://api.github.com/users/mahgo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-02T08:02:23Z","updated_at":"2017-01-26T06:20:03Z","closed_at":null,"body":"Is there a way to order by a string case insensitively?"},"comment":{"url":"https://api.github.com/repos/Shazwazza/Examine/issues/comments/275315887","html_url":"https://github.com/Shazwazza/Examine/issues/64#issuecomment-275315887","issue_url":"https://api.github.com/repos/Shazwazza/Examine/issues/64","id":275315887,"user":{"login":"mahgo","id":4499646,"avatar_url":"https://avatars.githubusercontent.com/u/4499646?v=3","gravatar_id":"","url":"https://api.github.com/users/mahgo","html_url":"https://github.com/mahgo","followers_url":"https://api.github.com/users/mahgo/followers","following_url":"https://api.github.com/users/mahgo/following{/other_user}","gists_url":"https://api.github.com/users/mahgo/gists{/gist_id}","starred_url":"https://api.github.com/users/mahgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahgo/subscriptions","organizations_url":"https://api.github.com/users/mahgo/orgs","repos_url":"https://api.github.com/users/mahgo/repos","events_url":"https://api.github.com/users/mahgo/events{/privacy}","received_events_url":"https://api.github.com/users/mahgo/received_events","type":"User","site_admin":false},"created_at":"2017-01-26T06:20:03Z","updated_at":"2017-01-26T06:20:03Z","body":"I noticed if you save the __Sort_ field with ToLower() on line 1278 of LuceneIndexer, this achieves this.\r\n```\r\ndefault:\r\n                            field =\r\n                                new Field(x.Key,\r\n                                    x.Value,\r\n                                    Field.Store.YES,\r\n                                    lucenePolicy,\r\n                                          Equals(lucenePolicy, Field.Index.NO) ? Field.TermVector.NO : Field.TermVector.YES\r\n                                );\r\n                            sortedField = new Field(SortedFieldNamePrefix + x.Key,\r\n                                                    x.Value.ToLower(),\r\n                                                    Field.Store.NO, //we don't want to store the field because we're only using it to sort, not return data\r\n                                                    Field.Index.NOT_ANALYZED,\r\n                                                    Field.TermVector.NO\r\n                                );\r\n                            break;\r\n```\r\n\r\nIs this the best way to do this? Maybe we could do something like this?\r\n      `<add Name=\"nodeName\" EnableSorting=\"true\" Type=\"STRING\" CaseInsensitive=\"true\" />`\r\n"}}
{"actor":{"display_login":"mahgo"}}