Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7763449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:39:42+00:00 2026-06-01T14:39:42+00:00

I have a GAE Entity called MyFile public class MyFile { static enum LocationEnum

  • 0

I have a GAE Entity called MyFile

public class MyFile {  
   static enum LocationEnum {Folders, Hidden};  
   static enum FileType {File, Folder);  
   @Id private Long id;  
   private Key<MyFile> parent;  
   private String name;  
   private LocationEnum location;  
   private FileType fType;

   // getters and setters  
}  

And a function in a separate DAO class to query for files based on their parent, returning the results ordered by name.

public List<MyFile> getFiles(Key<MyFile> parent) {  
    Query<MyFile> q1 = ofy().query(MyFile.class).filter("parent", parent).filter("location", LocationEnum.Folders).order("name");  
    return q1.list();
}  

It seems my order is ignored as the results are returned ordered by id. It did occur to me that I was missing something to do with indexing, but I noticed GAE blessed me an auto generated index based on location, parent, name. So I thought it would just work.

How do I order by name?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:39:43+00:00Added an answer on June 1, 2026 at 2:39 pm

    I’ve found the problem. It is not possible to do a case insensitive search on App Engine. GAE will order by upper case first A-Z followed by a-z.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following two entities: @Entity public class SupermarketChain { @Id @GeneratedValue(strategy =
I am using GAE(Java) with JDO for persistence. I have an entity with a
In GAE, I have a model called Foo, with existing entities, and attempt to
how do I return the entity ID using python in GAE? Assuming I have
I have seen the in GAE datastore there are so many entity which at
I have a persistent class stored in a GAE datastore. I have removed one
I use jQuery UI autocomplete widget . Also I have GAE datastore: class Person(db.Model):
I have two entity kinds in my python GAE app - both with similar
I have GAE application and I'd like to download CSV file from Blobstore and
I have a class public class GAE_SERVLETREQUESTServlet extends HttpServlet { Not sure what the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.