reorder

How to sort images in jquery/php/mysql same as google picassa reorder interface?

I am using PHP/MYSQL. I want to create a image gallery for sorting images. User will drag and drop images to sort and organize their images. Just like picassa do this. I have created a page using using jQuery UI sortable plug-in: http://jqueryui.com/demos/sortable/#display-grid Demo Page: http://jsbin.com/oqani/9/ Its dragging and d...

NSTableView won't begin dragging rows if the mouseDown happens within the rect of an NSButtonCell.

I currently have an odd case where I need to be able to reorder rows in an NSTableView, but the only column happens to be an NSButtonCell. I'm trying to see how I can override NSButtonCell's mouse tracking in order to get it to behave in a way so that the NSTableView will begin dragging the row, but am not having much luck. Additional i...

Wix: change installation folder tree

Hi, I've a set of folder to be installed in different layouts for different users. For examle: User1: AppFolder Dir1 Dir2 Dir3 User2: AppFolder Bin Dir1 Dir2 Lib Dir3 How it's possible? ...

Looking for solution to persist rows sequence in a database table that allow efficient reordering at runtime

I have a database table. There is a field name "Sequence" that indicate sequence when user presents the rows in report or grid visually. When the rows are retrieved and presented in a grid, there are few UI gadget that allow user to reorder the rows arbitrary. The new sequence will be persist in database table when user commit the cha...

Reorder `UITableViewCell` while creating it?

Hey. I am using a UItableView to show a list of stuff. When the user clicks on the accessory, it writes the location of the cell to a plist. Then it sends the [UITableView reloadData]-selector to the tableView. How can I set a different indexPath to a UITableViewCell inside the tableView: cellForRowAtIndexPath: method? Thank you. ...

ReorderListView in WPF

I love the controls from the Bag-Of-Tricks. I am interested in modifying the ReorderListBox control to get a ReorderListView control. However, simply changing the base class from ListBox to ListView is not working. When I try to add a ReorderListView to XAML like this: <lib:ReorderListView Grid.Row="1"> <ReorderListView.View...

R: How can I reorder the rows of a matrix, data.frame or vector according to another one.

test1 <- as.matrix(c(1, 2, 3, 4, 5)) row.names(test1) <- c("a", "d", "c", "b", "e") test2 <- as.matrix(c(6, 7, 8, 9, 10)) row.names(test2) <- c("e", "d", "c", "b", "a") test1 [,1] a 1 d 2 c 3 b 4 e 5 test2 [,1] e 6 d 7 c 8 b 9 a 10 How can I reorder test2 so that the rows are in the same order a...

reorder NSArray in objective-c

I have an NSArray of JSON file locations. There are stored in the user's/app's Document directory and inside each JSON file is a name value. I'm able to retreive the data from JSON files, I don't need help with tht. But I need help on sorting NSArrays I have no idea how I can do that based on a value inside the file, while not being pa...

How can you manually reorder a ListView in Android?

I have a ListView in Android that needs to have the ability to be manually reordered. An example would be within Android's Music Player application, when you can change the order of tracks in a playlist. I know how to programmatically change the order of a ListView, but not how to do it in regards to a touch and slide approach that can b...

Bringing specific results to the front using one MySQL query.

I'm setting up my geolocation feature which lists out all the countries in order of name. However, most websites have it set up where the popular countries (such as United States, United Kingdom, Canada, Australia) are at the front of the list (are shown first rather than in their assigned places). Is it possible to achieve this using th...

Scrolling speed during UITableView re-ordering mode (not performance related)

Is there a way to increase the speed that you can drag a cell up/down during a table's movable row mode of a UITableView? For instance, there seems to be a standard speed that the table will allow you to drag the cell when you are moving it around and the scroll speed seems to increase if you hold it near the top/bottom edge of the devi...

moving select options up and down via jquery

so I got this code working for Firefox and Chrome...what it does is it allows you to reorder the options within an HTML select form...but then when I tested the code via IE8, it's kind of patchy...it only works for the first few clicks and after that you have to click many times on the button for it to work.. Does anybody know any other...

Reordering Rows In Grouped UITable while maintaing the number of rows in each group

I have a grouped table that I want the user to be able to reorder. I would like to have two groups. When I move a row from group A, to group B, I would like the top row from group B to be moved to the bottom of group A. When I move a row from group B to group A, I would like the bottom row of group A to be moved to the top of Group B....

javascript widget to display a book catalogue. (need re-ordering and persistent)

A book has several chapters, and each chapter has several sections. This could be deemed as either a two-level tree or a nested list. Now I need to display the catalogue of the book. And the user can drag-and-drop to re-order chapters and sections. Do you know any good javascript widget for this? After the re-ordering, the new orde...

Reordering python list based on an algorithm or pattern

Here is a stumper for you math geeks out there. I have a python list that is just a sequence that looks like this: myList=[1,2,3,4,5,6,7,8,9,10,11,12,13,(...etc...),43] Unfortunately, the data from which the list was generated was not zero-padded, and it should have been. So in reality: 1==1 2==10 3==11 4==12 5==13 6==14 7==15 8=...

Reorder function arguments in Lisp

I'm interested in an operator, "swap-arg", that takes as input 1) a function f of n variables, and 2) index k, and then returns a the same function except with the first and kth input variables swapped. eg (in mathematical notation): (swap-arg(f,2))(x,y,z,w) = f(z,y,x,w) Now my first idea is to implement this using rotatef as follows, ...

How to change the order of the TabItem in the wpf TabControl

I need to change the order of the TabItem. I've tried with Remove / Insert and it doesn't works. void UserControl_Loaded(object sender, RoutedEventArgs e) { if(condition) { TabControl.Items.Remove(TabItem); TabControl.Items.Insert(0, TabItem); } } InvalidOperationException: Element already has a logical parent. It mus...

NSFetchedResultsController delegate methods won't be called after rearranging table rows

hi all i wonder why the delegate methods of NSFetchedResultsController won't be called after i reorder table rows. my problem is that rows disappear when i rearrange them in my tableview with the method - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath so ...