{"type":"rich","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/kuronekopunk/","title":"Rails Ransack\u3067NULLS LAST\u3067sort\u3059\u308b","categories":["Rails","Ruby on Rails"],"blog_url":"https://akinobu.net/","blog_title":"\u30ce\u30f3\u30ab\u30d5\u30a7\u30a4\u30f3\u3067\u3042\u306a\u305f\u306b\u3084\u3055\u3057\u3044","provider_name":"Hatena Blog","image_url":null,"published":"2017-09-28 17:57:39","description":"Ransack\u306econdition\u306b\u306f\u5165\u308c\u3089\u308c\u306a\u3044\u3089\u3057\u3044 NULLS LAST\u3067sort\u3059\u308b\u306b\u306f Ransack\u306e\u5916\u5074\u3067\u666e\u901a\u306bOrder\u6307\u5b9a\u3059\u308b Model.search(conditions).result.order('column DESC NULLS LAST') \u8131Ransack\u3057\u305f\u3044 \u53c2\u8003 How to add NULL LAST to sorts \u00b7 Issue #443 \u00b7 activerecord-hackery/ransack \u00b7 GitHub","version":"1.0","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakinobu.net%2Fentry%2F2017%2F09%2F28%2F175739\" title=\"Rails Ransack\u3067NULLS LAST\u3067sort\u3059\u308b - \u30ce\u30f3\u30ab\u30d5\u30a7\u30a4\u30f3\u3067\u3042\u306a\u305f\u306b\u3084\u3055\u3057\u3044\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","url":"https://akinobu.net/entry/2017/09/28/175739","author_name":"kuronekopunk"}