Question: I have a bar chart as below
![enter image description here](https://i.stack.imgur.com/IYHVY.jpg)

the horizontal axis has months and years,is there any way i can sort the months order?
like January,february,March...

thanks in advance

Answer: 
One solution is to subclass `UIRefreshControl` and override frame property. The following code works in all the cases I tested. You can also implement it without frame override by applying transform. Setting frame in `viewDidLayoutSubviews` doesn't work since iOS 11.

```
class OffsetableRefreshControl: UIRefreshControl {

  var offset: CGFloat = 64
  override var frame: CGRect {
    set {
      var rect = newValue
      rect.origin.y += offset
      super.frame = rect
    }
    get {
      return super.frame
    }
  }

}

```
Just simple (Swift)

```
   override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        refreshController.frame = CGRectMake(refreshController.bounds.origin.x,
                                              50.0,
                                              refreshController.bounds.size.width,
                                              refreshController.bounds.size.height);
        refreshController.superview?.sendSubviewToBack(refreshController) // for fix overlap tableview
    }

```