I'm trying to integrate firebase on Android project. Everything works well, but I could see the customized class members was sorted in alphabetically rather than defined order when I visit Firebase Admin.
Here is customized class on Android code:
@IgnoreExtraProperties
public class trackingData
{
public String Time;
public double S1 = 0.0;
public double S2 = 0.0;
public double S3 = 0.0;
public double S4 = 0.0;
public double copX;
public double copY;
public double copD;
public double VelocityX;
public double VelocityY;
public double VelocityD;
public int copScore;
public int stabilityScore;
public fbTrackingData() {
Time = "20000";
S1 = 2.35;
S2 = 3.55;
S3 = 0;
S4 = 0;
copX = 0;
copY = 0;
VelocityX = 10.3;
VelocityY = 10.5;
VelocityD = 20.3;
copScore = 10;
stabilityScore = 5;
}
}
And Here is screenshot on Firebase console.
I want to see all the class members as defined order like "Time", "S1", "S2", "S3", "S4", "CopX", "CopY", "CopD", ... , "copScore", "stabilityScore".
How can I solve it on either of Android or Firebase console?
actully you don't order firebase admin panel in your desired way its permanently order in alphabtic by firebase team.