returning data from a database aplhabetically : Okay so I've created a database which stores different attributes for a given user. I have implemented an algorithm which takes the username attribute and stores the contents of this attribute and stores it in an array. However for some reason, when printing the array it shows the users in alphabetical order: I want it to return the original order of my database. For context I am using the JDBC API in java which takes mySQL sytax. 

I have not implemented an ORDER BY statement, it is just a simple SELECT FROM WHERE statement but it seems to return alphabetically. 

    public void DisplayUsers() throws SQLException {
       
       String queryCount = "SELECT COUNT(Username) FROM UserInfo";
       String query = "SELECT Username FROM UserInfo";  
       declaringDataBase();
       
       rsObj = statObj.executeQuery(queryCount);
       String x = null;
     
        while(rsObj.next()){
          x = rsObj.getString(1); 
         }

       int rowNum = Integer.parseInt(x);
      
       rsObj = statObj.executeQuery(query);
       
       String UserArray[] = new String[rowNum];
       int counter = 0;
       
       while(rsObj.next()){
        
           String user = rsObj.getString("Username");
           UserArray[counter] = user;
           System.out.println(UserArray[counter]);
           counter++;
       }
       
    }

the line *declaringDatabase();* simply calls another method to connect my database to the code. The count statement is taking the number of users under attribute Username and creating an integer to store as the length of the array. But anyway my UserArray[] returns values in alphabetical order? does anybody know why! highly appreciated. 