//
//  Ordinable+FirebaseModel.swift
//  FireRecord
//
//  Created by Victor Alisson on 25/09/17.
//

import FirebaseCommunity

extension Orderable where Self: FirebaseModel {
    public static func order(byProperty property: String) -> Self.Type {
        Self.fireRecordQuery = Self.classPath.queryOrdered(byChild: property) as? DatabaseQuery
        return self
    }
}

//
//  Ordinable+FirebaseModel.swift
//  FireRecord
//
//  Created by Victor Alisson on 25/09/17.
//

import FirebaseCommunity

extension Orderable where Self: FirebaseModel {
    public static func order(byProperty property: String) -> Self.Type {
        Self.fireRecordReference = Self.classPath.queryOrdered(byChild: property) as? DatabaseReference
        return self
    }
}

--- 
+++ 
@@ -9,7 +9,7 @@
 
 extension Orderable where Self: FirebaseModel {
     public static func order(byProperty property: String) -> Self.Type {
-        Self.fireRecordReference = Self.classPath.queryOrdered(byChild: property) as? DatabaseReference
+        Self.fireRecordQuery = Self.classPath.queryOrdered(byChild: property) as? DatabaseQuery
         return self
     }
 }
Define standard implementation of the Orderable protocol
