Sorting doesn't seem to sort by name - why?
Having successfully migrated from Aperture to Photos I was surprised to find that the sorting function is minimal and doesn't appear to work. With 'Keep sorted by date' unselected my pictures do not sort by name. The only thing I seem to be able to sort by name is the Album in which I keep my folders of pictures within Photos.
Can anyone advise?
Thanks!
When you changed the folder setting for iTunes, you may have noticed at the top of the dialogue box that is was changing the settings for that folder only. For instance, I did my little test on a drive named "Video". When I called up the View Options, the box specifically said Video at the top. So I knew the change was only going to affect that folder.
There is a box at the bottom to Use as Defaults, but it still only affects that folder. I can't see a way to make the option global, which means you have to mark folders one at a time to calculate the subfolder sizes. Probably intentional as it can really slow down the Finder's response time when it has to sit there and tally up the contents of every folder you open, or reopen.
Similar Messages
-
My PriorityQueue doesn't seem to sort it's elements correctly ....
Hi, here is my semi-complete program, I have removed the methods that were irrelevant to make things simple. The program is supposed to represent Graphs, and minimal spanning trees. I first have to put edges in a priority queue of type : PQEntry (Below), which are to be sorted by their 'distance'. I have not included the interfaces as they weren't necessary here (all methods are already implemented). There is no compile error, but for example when I run the program, and enter 'mst' (it shoud print the contents of the Priority Queue in the order of their distances), it puts the first few elements in order but fails to do so on the remaining elements. below is a sample run.
graph> init
graph> mst
[(4 5) = 51
, (12 14) = 51
, (7 9) = 70
, (10 11) = 60
, (8 9) = 75
, (7 8) = 100
, (3 4) = 90
, (9 10) = 95
, (4 7) = 151
, (15 16) = 110
, (5 6) = 151
, (11 5) = 600
, (11 12) = 151
, (11 13) = 200
, (12 13) = 100
, (3 7) = 300
, (13 15) = 200
, (13 16) = 200
, (14 15) = 170
, (10 4) = 400
, (14 16) = 251
graph>
class PQEntry implements Comparable {
int node1 , node2 , distance;
public PQEntry(int node1 , int node2 , int distance) {
this.node1 = node1;
this.node2 = node2;
this.distance = distance;
public int getPriority () {
return distance;
public String toString() {
String output = "(" + node1 + " " + node2 + ")" + " = " + distance + "\n" ;
return output;
public int compareTo(Object o) {
if(o instanceof PQEntry){
if (getPriority() > ((PQEntry) o).getPriority()) {
return 1;
} else if(getPriority() == ((PQEntry) o).getPriority()) {
return 0;
} else {
return -1;
} else {
throw new IllegalArgumentException("o must be an instance of PQEntry");
import java.io.*;
import java.util.*;
class Main {
final static String PROMPT = "graph> ";
static private Graph myGraph = new GraphImp(51);
static void initGraph() {
myGraph.addEdge(3, 4, 90);
myGraph.addEdge(3, 7, 300);
myGraph.addEdge(4, 7, 151);
myGraph.addEdge(4, 5, 51);
myGraph.addEdge(5, 6, 151);
myGraph.addEdge(7, 8, 100);
myGraph.addEdge(7, 9, 70);
myGraph.addEdge(8, 9, 75);
myGraph.addEdge(9, 10, 95);
myGraph.addEdge(10, 4, 400);
myGraph.addEdge(10, 11, 60);
myGraph.addEdge(11, 5, 600);
myGraph.addEdge(11, 12, 151);
myGraph.addEdge(11, 13, 200);
myGraph.addEdge(12, 13, 100);
myGraph.addEdge(12, 14, 51);
myGraph.addEdge(13, 16, 200);
myGraph.addEdge(13, 15, 200);
myGraph.addEdge(14, 15, 170);
myGraph.addEdge(14, 16, 251);
myGraph.addEdge(15, 16, 110);
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String[] input;
String line;
do {
System.out.print(PROMPT);
input = in.nextLine().split(" ");
if (input[0].equalsIgnoreCase("add")) {
if(input.length == 4){
if(!input[1].equals(input[2])) {
myGraph.addEdge(Integer.parseInt(input[1]), Integer.parseInt(input[2]), Integer.parseInt(input[3]));
} else {
System.out.println("Error! A node cannot connect to itself");
} else {
System.out.println("Incorrect command format, enter 3 seperate integers after 'add'");
} else if(input[0].equalsIgnoreCase("del")) {
if(input.length == 3) {
myGraph.deleteEdge(Integer.parseInt(input[1]), Integer.parseInt(input[2]));
} else {
System.out.println("Incorrect command format, enter two seperate intgers after 'del'");
} else if(input[0].equalsIgnoreCase("help") && input.length == 1) {
System.out.println("The available commands are: help, quit, add i j l, del i j, where 'i' is the source node, 'j' is the target node and the 'l' is the length of the edge between them");
} else if(input[0].equalsIgnoreCase("quit") && input.length == 1) {
System.exit(0);
} else if(input[0].equalsIgnoreCase("mst") && input.length == 1) {
int[][] tempMatrix = myGraph.getMatrix();
PriorityQueue<PQEntry> edges = new PriorityQueue<PQEntry>(51);
List<PQEntry> sortedEdges = new LinkedList<PQEntry>();
for(int i = 1; i < 51; i++) {
for(int j = 1; j < 51; j++){
if (tempMatrix[i][j] > 0) {
edges.add(new PQEntry(i, j, tempMatrix[i][j]));
sortedEdges.addAll(edges);
System.out.println(sortedEdges);
} else if(input[0].equalsIgnoreCase("print") && input.length == 1) {
System.out.println(myGraph.toString());
} else if(input[0].equalsIgnoreCase("init") && input.length == 1) {
initGraph();
} else {
System.out.println("unknown Command, enter help for lsit of valid commands");
} while(true);
import java.util.*;
class GraphImp implements Graph {
//contains a two-dimensional array to hold the start vertex, end vertex
//and the distance between the two verteces.
private int [][] matrix;
//constructor, sets the bounds of the two-dimensional array
public GraphImp(int size) {
matrix = new int[size][size];
//returns the two-dimensional array to the method calling it
public int[][] getMatrix() {
return matrix;
//this method first checks whether the two nodes are within the
//acceptable range and gives an erro if not. It then checks whether an edge exists between the nodes
//if an edge already exists it gives the user an error message, otherwise adds the edge
//to the two-dimensional array at the appropriate position.
public void addEdge(int node1 , int node2 , int distance) {
if(node1 > 0 || node1 < 51 || node2 > 0 || node2 < 51) {
if(matrix[node1][node2] == 0 && matrix[node2][node1] == 0) {
matrix[node1][node2] = distance;
} else {
System.out.println("Error! An edge already exists between the two nodes");
} else {
System.out.println("Error! Atleast one of the nodes are out of range, please enter within the range 1 - 51");
//This method first checks whether the two nodes are within the acceptable range
//if they are not an error message is given, otherwise it checks whether an edge exists
//between the nodes. If there already exists one is prints an error, otherwise it removes
//the corresponding edge.
public void deleteEdge(int node1 , int node2) {
if(node1 > 0 || node2 > 0 || node1 < 51 || node2 < 51) {
if(matrix[node1][node2] != 0 || matrix[node2][node1] != 0) {
matrix[node1][node2] = 0;
matrix[node2][node1] = 0;
} else {
System.out.println("Error! No such edge exists to delete");
} else {
System.out.println("Error! Atleast one of the nodes are out of range, please enter within the range 1 - 51");
//this method
public String toString()
String result = "";
for(int j = 0; j < matrix[0].length; j++){
for(int i = 0; i < matrix[0].length; i++){
if (matrix[j] > 0){
result = result + "(" + j + "," + i + ")" + " = " + matrix[j][i] + "\n";
return result;msjamalan wrote:
Hi, here is my semi-complete program, I have removed the methods that were irrelevant to make things simple. The program is supposed to represent Graphs, and minimal spanning trees. I first have to put edges in a priority queue of type : PQEntry (Below), which are to be sorted by their 'distance'. I have not included the interfaces as they weren't necessary here (all methods are already implemented). There is no compile error, but for example when I run the program, and enter 'mst' (it shoud print the contents of the Priority Queue in the order of their distances), it puts the first few elements in order but fails to do so on the remaining elements. below is a sample run.AFAIK, a sorted priority queue sorts the output returned by the queue's poll method. So if you iterate through the entire queue via the poll() method, what is spit out should be sorted. If you just print the queue itself via println, you wan't see this sorting.
Also, when posting code here, please use code tags so that your code will retain its formatting and thus will be readable -- after all, your goal is to get as many people to read your post and understand your code as possible, right?
To do this, highlight your pasted code (please be sure that it is already formatted when you paste it into the forum; the code tags don't magically format unformatted code) and then press the code button, and your code will have tags.
Another way to do this is to manually place the tags into your code by placing the tag [code] above your pasted code and the tag [code] below your pasted code like so:
[code]
// your code goes here
// notice how the top and bottom tags are different
[/code]Much luck! -
My large text at 32pt font doesn't affect all of my emails, why?
In his iPhone Settings, under Accessibility, my boss has his Large Text set at 32pt font. However, about half of his work emails come through in the large font, and half do not (they come through in 5pt font, it's really small). The email is an Microsoft Exchange email, and I've had my fair share of problems working on an iPhone with an Exchange account, but this seems odd as there doesn't seem to be a reason why some emails come through in 32pt font, and other's don't. I don't know if it has anything to do with the length of the chain of the email, like 40 email responses come through small whereas an email chain of 5 responses comes through in 32pt. AppleCare had no idea, and did some troubleshooting (e.g. rebooting and try to reset all preferences) which didn't work. Help please!
No, only outbound emails are HTML. Inbound emails are sent in their original format, whether that's RTF or Plain Text. So is that the problem then? Emails that are sent, lets say, Plain Text where it doesn't support italics, bold, or other text formatting? Although, it seems that many of the emails that aren't affected by his iPhone setting of 32pt text seem to come through in either RTF or HTML, as most of these inbound (external) emails are also coming from Outlook 2010.
-
I sort my booksmarks (A-Z) but that sort doesn't last very long. It seems like the sorting process I go through doesn't get "saved." Thoughts? Thanks, Scott
How are you sorting the bookmarks?
The Views menu in the Bookmarks Manager (Bookmarks > Show All Bookmarks) is for displaying the bookmarks in different sorting orders (hence the name Views) and doesn't sort bookmarks permanently.<br />
In Firefox the option to sort bookmarks is only available for folders and not for individual bookmarks.<br />
Right-click a folder to open the context menu and choose "Sort By Name" in the left pane of the Bookmarks Manager or in the side bar to sort the bookmarks alphabetically or drag bookmarks to the wanted position.<br />
If dragging doesn't work then use Cut and Paste instead.
See:
* http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
* SortPlaces: https://addons.mozilla.org/firefox/addon/sortplaces/ -
How can i sort PDF's on IBook with the name that starting with numbers
i import a number of pdf's representing ameeting agenda as the files names (1xxx,1.1xxxx, 2.xxxx,10.xxxx) on ibook , however the files sorted on a diffrent way as file start with 10 on first . so how can i sor the files on the IBook with its name starting with numbers as1 &1.1 and so on.
You seem to want a numeric sort but are getting a character sort.
a number range would be 0,1,2,3, ... 9,10,11 ...
sorting like everything else with computers is an algorithm. Someone needs to define how it works. When you see a list of files, someone has defined how the list will be sorted. If you compare Windows file sorting to Mac files sorting you will find there are differences.
In the case of files sorting, the files are sorted on characters from left to right. In file sorting the sorting algorithm does not try to determine that files are numbers. All files beginning with a 1 will be sorted together becuase the file sorting althorithm doesn't look at the second character position before grouping all the 1's together.
For what it is worth, there are multple books written on sorting.
Robert -
How to Sort music on play list by FILE NAME?
How to Sort music on play list by FILE NAME?
iTunes doesn't display the filename or filepath as a column so you can't sort on it. I could write a script to copy the filepath into the Sort Name field so that sorting by name would sort by filepath. Would that help? In normal circumstances however filepath order would be the same as Album by Artist, so I'm not sure what you would gain. Perhaps there is another way to approach whatever problem you think sorting by filename would solve.
tt2 -
APEX_ITEM report - SORT doesn't work
Hi,
For the following report, the SORT doesn't work. I've also tried with the "Report Attributes", but same result. Does someone know is there a way to make it sorted or can confirm it's not possible.
Thanks.
SELECT
APEX_ITEM.CHECKBOX(11,id_cc_delai_recueil) id_cc_delai_recueil,
APEX_ITEM.HIDDEN(12,id_cc_delai_recueil)||APEX_ITEM.HIDDEN(13,id_cc_regle)||APEX_ITEM.TEXT(14,numdelai,3) numdelai,
APEX_ITEM.SELECT_LIST_FROM_LOV(15,typedoss,'DOSSIERS OU DOCUMENTS',NULL,'NO') typedoss,
APEX_ITEM.TEXT(16,suppdoss,3) suppdoss,
APEX_ITEM.SELECT_LIST_FROM_LOV(17,rem_suppdoss,'REMARQUE_DELAI',NULL,'YES','','') rem_suppdoss,
APEX_ITEM.TEXT(18,perioactif,3) perioactif,
APEX_ITEM.SELECT_LIST_FROM_LOV(19,rem_perioactif,'REMARQUE_DELAI',NULL,'YES','','') rem_perioactif,
APEX_ITEM.TEXT(20,periosmact,3) periosmact,
APEX_ITEM.SELECT_LIST_FROM_LOV(21,rem_periosmact,'REMARQUE_DELAI',NULL,'YES','','') rem_periosmact,
APEX_ITEM.SELECT_LIST_FROM_LOV(22,dispoinact,'DISPOSITION1',NULL,'NO') dispoinact,
APEX_ITEM.SELECT_LIST_FROM_LOV(23,rem_dispoinact,'REMARQUE_DELAI',NULL,'YES','','') rem_dispoinact
FROM
cc_delai_recueil
WHERE id_cc_regle = :P52_ID_CC_REGLE
ORDER BY
3,
2Paulo,
Remove the Order By clause from your Select statement and then use the Report Attributes to determine your sort order.
Jeff -
I have a lot of various book mark folders with websites contained within each folder. I am able to sort the websites within each folder alphabetically by name but I cannot find a way to sort the bookmark folders themselves alphabetically by name.I am not talking about in a view mode but in the way they are displayed when I click on my bookmarks tab. Can someone explain to me how to accomplish this other than manually dragging them as this is extremely hard for me due to the fact that I am a quadriplegic with limited hand movement dexterity
Bookmark folders that you created are in the Bookmarks Menu folder. "Sort" that folder.
http://kb.mozillazine.org/Sorting_bookmarks_alphabetically -
The iPad doesn't seem to want to set up an email for a "group" in my Contacts. When I type the name of a group in the "To:" line of a new message on my iMac, all the email addresses of the group automatically appear. Not so with my iPad. Help?
Apparently Groups are not supported in the Mail App on the iPad. Read this thread and see Michael Morgan's post for a workaround.
https://discussions.apple.com/message/13084823#13084823 -
How do I sort my address book by the last name, not the first name
AS I created my address book the names were added randomly to the address book. When I print out the address book the names come up with first name, Last name (all in random order alphabetically). I would like them to come up with Last name, first name, email address in alphabetic order by the Last Name. How do I get them sorted corretly??
Enable the menu in the Address Book. Then look at the options under View and Sort By.
More here on sorting: http://www.ramsden.org.uk/8_How_to_sort.html
And about menus here: http://chrisramsden.vfast.co.uk/13_Menus_in_Thunderbird.html -
How can I sort the Pictures in an Album by Name?
I am updated my Photo App on OSX 10.10.2. All my Albums are imported fine, but how I can sort the Pictures in one Album by name? I just found the option for the Albums.
Currently you can sort regular albums manually or by date; Smart Albums only by date; see How can you sort Album or Smart Album photos?
-
Contacts sorted and dispalyed last name, first name - why when I access contacts via messaging do they display first name, last name?
Hi
It is when I tap on the +....
My husbands display with first name first but grouped by surname alphabetically.
Thanks
Cat -
When sorting, Itunes ignores "The" of my artists names
When sorting, Itunes ignores "The" of my artist name.
Is it normal?
Like "The Offsprings" is sort with my "O" artist.
Is there a way that I tune would recognize it?Ok but its weird, itunes recognize The on my bros laptop and not on mine.
-
I really want my Apple TV, iPad and iPhone to sort them in date taken like in iPhoto on my iMac. How do I do that? Sorting on date modified seems so stupid to me, why would anyone need this? Date taken gives a timeline in your event.
The unix commands you need are:
GetFileInfo
SetFileInfo
and maybe find
for cryptic details use the man command
Macintosh-HD -> Applications -> Utilities -> Terminal
man SetFileInfo
You may use the SetFileInfo command to set the file type & the program which will open the file.
# This little gem will do a get info on all files in a directory.
mac $ ls | xargs -I {} GetFileInfo "{}"
file: "/Users/mac/playdoc/oddadocodd"
type: ""
creator: ""
attributes: avbstclinmedz
created: 05/01/2011 14:53:22
modified: 05/01/2011 14:53:22
file: "/Users/mac/playdoc/one.docx"
type: ""
creator: ""
attributes: avbstclinmedz
created: 05/01/2011 13:57:48
modified: 05/01/2011 13:57:48
file: "/Users/mac/playdoc/oneLineFile"
type: "TEXT"
creator: "!Rch"
attributes: avbstclinmedz
created: 05/07/2011 14:27:17
modified: 05/07/2011 14:27:17
file: "/Users/mac/playdoc/oneLineFile.txt"
type: "TEXT"
creator: "!Rch"
attributes: avbstclinmedz
created: 05/07/2011 14:27:49
modified: 05/07/2011 14:27:49
file: "/Users/mac/playdoc/three.docx"
type: ""
creator: ""
attributes: avbstclinmedz
created: 05/01/2011 13:58:03
modified: 05/01/2011 13:58:03
file: "/Users/mac/playdoc/two.docx"
type: ""
creator: ""
attributes: avbstclinmedz
created: 05/01/2011 13:57:56
modified: 05/01/2011 13:57:56
file: "/Users/mac/playdoc/weirder.doc.docx"
type: ""
creator: ""
attributes: avbstclinmedz
created: 05/01/2011 14:50:03
modified: 05/01/2011 14:50:03
# well, ! is a funnie character so we escape it.
mac $ SetFile -t TEXT -c \!Rch two.docx
mac $ GetFileInfo two.docx
file: "/Users/mac/playdoc/two.docx"
type: "TEXT"
creator: "!Rch"
attributes: avbstclinmedz
created: 05/01/2011 13:57:56
modified: 05/01/2011 13:57:56
mac $
mac $ date
Sat May 7 14:40:56 EDT 2011
mac $ -
Sold BT Infinity 2 but it doesn't seem to exist!
Hi,
Just wanted to see if anyone else has had a simliar problem to me and if so how you are going about dealing with it. So back in August I moved into a new house. I rang BT and said that I would like a phone line and also enquired as to what Broadband they could provide.
So the woman in the sales centre informed me that I could have BT Infinity 2 with speeds of up to 76mbs! Brilliant. So I ordered this amazingly fast Broadband and also my phone line. I'm now in November nearly 3 months on from ordering this superfast broadband and I still don't have any broadband.
I have had 4 or 5 engineers come out now. Basically the problem is that the exchange hasn't been set up for BT Infinity 2.
The latest update I had was can you wait for 3 weeks and we will do a review. When they did a 'Review' on Tuesday the outcome was can you wait another week and we will give you another update.
There must be some sort of act that they are in breach of selling a service that isn't actually available? They don't seem to give me a decent answer ever. They seem to blame BT Openreach for all the problems.
Just wondered if anyone has had the same problem and what you did?
Thanks
GarethHi sorry for not replying to anyone. Not having the internet at home is obviously an issue. The battle with the BT Muppets is still ongoing and we still don't seem to be any closer.
Says that it is all available. Think I'm up to just about 3 months now since ordering it. I've been told 3 dates in the last 2 weeks when the problem is supposed to have been resolved only to be let down every single time. I'm not due an update until December now though!
Just doesn't seem to be anyone at BT that knows what they are doing or able to give you a straight answer on exactly what is going on.
Do BT fine BT Openreach for delays? If so I would be interested to know how much they get!
My issue has been moved onto a specific person now because I complained. But quite honestly that has made no difference whatsoever. Just like dealing with the normal bods on the normal line!
I would never go with BT again even if it is just because of the poor customer service and lack of updates. Everytime they say they are going to ring me they don't and then I have to end up chasing them all the time.
The only reason I don't want to cancel it now is because I'm 3 months down the line and if I cancel and go with someone else I get to join the back of the queue!
BT BROADBAND AVAILABILITY CHECKER
Telephone Number on Exchange WEST MALLING is served by Cabinet 42
Featured ProductsDownstream Line Rate(Mbps)Upstream Line Rate(Mbps)Downstream Range(Mbps)Availability Date High Low High Low
FTTC Range A (Clean)
80
63.3
20
20
Available
FTTC Range B (Impacted)
75.6
50.5
20
16.3
Available
WBC ADSL 2+
Up to 1
1 to 3.5
Available
ADSL Max
Up to 1
0.75 to 2.5
Available
WBC Fixed Rate
0.5
Available
Fixed Rate
0.5
Available
Other Offerings
Fibre Multicast
Available
Copper Multicast
Available
For all ADSL and WBC Fibre to the Cabinet (FTTC) services, the stable line rate will be determined during the first 10 days of service usage.
For FTTC Ranges A and B, the term "Clean" relates to a line which is free from any wiring issues (e.g. Bridge Taps) and/or Copper line conditions, and the term "Impacted" relates to a line which may have wiring issues (e.g. Bridge Taps) and/or Copper line conditions.
Throughput/download speeds will be less than line rates and can be affected by a number of factors within and external to BT's network, Communication Providers' networks and within customer premises.
The Stop Sale date for Datastream is from 30-Jun-2012; the Formal Retirement date for Datastream is from 30-Jun-2014. The Stop Sale date for IPstream is from 30-Nov-2012; the Formal Retirement date for IPstream is from 30-Jun-2014.
If you have already placed an order for Broadband and now wish to change to a new supplier, then you will need to cancel the existing order with your service provider or your new request will be rejected. If you do not know who the current Service Provider is, please contact your new Service Provider, who should be able to help you to resolve this issue.
Note: If you decide to place an order for a WBC fibre product, an appointment may be required for an engineer to visit the end user's premises to supply the service.
Please note that postcode and address check results are indicative only. Most accurate results can be obtained from a telephone number check.
Thank you for your interest.
Maybe you are looking for
-
Hi Guys, Can we add a video player to a Richeditable text, if yes what is wrong in the code below? I can see it adds to the editor but soesnt show up <?xml version="1.0" encoding="utf-8"?> <!-- // Copyright (C) 2009 Rad3 Limited. // All Rights Reserv
-
HI guys, i've recently installed the web photo gallery plug in for CS4 on mac. But there seems to be a problem with the language, for example when i try to type my email i get some weird "signs" instead of english (i've just tried to copy/paste the "
-
Rebate report or list which shows the balance of each rebate in the list
Hi, VB(8 list rebates; this report lists the rebates in the selected range and you can drill in...Even after drill in this list does not include settlements or manual accruals and so does not reprent the balance? Any thoughts or experience with this
-
Question - applet using JMF for playing .mov
I develop an applet using JMF for playing .mov. It works fine, and the applet starts normally. Even my applet works fine from other computers in our LAN (The applet runs ok without JMF). But only on one PC it doesn't work and I get the following mess
-
In the recent days I had many problems after upgrading to Snow. Some involve 3rd parties software.. some Mac OS Adobe Softwares seem to have some problems. In particoluar I work with Premiere and it continuosly hangs (turning wheel). Generally it see