title: How do I sort Data from backendless and Hide (Not Remove) Duplicates for Android?
body: <p>I am Creating An App that will allow users to select Drinks From a tablet with in the store. The Store Managers will be able to upload New Drinks from Backendless. The Goal is to have a button For Every Brand however I am unsure of how to stop from Duplicating a button For two Different Drinks. <a href="https://i.stack.imgur.com/pR07L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pR07L.png" alt="How My Table Is set up"></a></p>
  
  <p>Originally I was going to Attempt to sort them then Count them but then add the buttons to match but I do not know how have it only Count the Brand Once. 
  I searched Through Backendless's API Documentation and I was unable to find what I needed. </p>
  
  <pre><code>     DataQueryBuilder queryBuilder = DataQueryBuilder.create();
  
  
            Backendless.Data.of( "Location_1" ).getObjectCount( queryBuilder,
                      new AsyncCallback&lt;Integer&gt;()
                      {
                       @Override
                   public void handleResponse( Integer integer )
                                  {
                           Log.i( "MYAPP", "found Brands " + integer );
  
      }
       @Override
       public void handleFault( BackendlessFault backendlessFault )
                                  {
     Log.i( "MYAPP", "error - " + backendlessFault.getMessage() );
                                  }} );
  </code></pre>