Dragging sorting method and device, electronic equipment and storage medium

In Web front-end technology, the sorting information is determined based on the position attributes and drag instructions of the front-end data, and coordinated with the back-end server, the problem of data inconsistency caused by multiple users dragging data is solved, and the unified display of the front-end data sequence is realized.

CN118796083APending Publication Date: 2024-10-18CHINA MOBILE M2M +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311665931.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, when multiple users drag data at the same time, it is easy to cause the order of the data seen by different users to be inconsistent, leading to the problem of inconsistent front-end data sorting and update.

Method used

Determine the front-end data sequence information and modified position information based on the position attribute of the front-end data, and send this information to the back-end server. The back-end server updates the back-end data sequence based on the front-end data sequence information and modified position information, and sends the updated sequence information Feedback to the front-end to ensure that the front-end data sequence is consistent.

Benefits of technology

This ensures that when multiple users drag data at the same time, the order of the data seen by all users is consistent and avoids the problem of data inconsistency caused by multi-user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796083A_ABST
    Figure CN118796083A_ABST
Patent Text Reader

Abstract

The invention provides a dragging sorting method and device, electronic equipment and a storage medium. Relates to the technical field of Web front ends, in particular to a dragging sorting method, which comprises the following steps of: determining front-end data sequence information based on position attributes of each piece of front-end data; determining change position information of the dragged front-end data based on the dragging instruction and the position attribute of the front-end data; front-end data sequence information and change position information are sent to a back-end server; back-end data sequence information fed back by the back-end server is received, and the back-end data sequence information is obtained by updating the back-end data sequence according to the change position information after the back-end server determines that the front-end data sequence is consistent with the back-end data sequence according to the front-end data sequence information; and displaying the front-end data according to the rear-end data sequence information. According to the technical scheme, when multiple users drag the data at the same time, front-end data display is consistent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Web front-end technology, and in particular to a drag-sorting method, device, electronic device and storage medium. Background Art

[0002] In the prior art, the process of sorting and updating data on the Web front end is that after the user drags the data for sorting, the front end directly passes the sorted data list to the back end server through an interface, the back end server directly updates the data according to the data list, and the front end displays the data updated by the back end server. However, when multiple users drag data at the same time, it is easy to cause inconsistent data seen by different users. Summary of the invention

[0003] In order to solve at least one technical problem in the prior art, the present disclosure provides a drag sorting method, device, electronic device and storage medium.

[0004] According to a first aspect of the present disclosure, a drag sorting method includes:

[0005] Determine the sequence information of the front-end data based on the location attributes of each front-end data;

[0006] Based on the dragging instruction and position attribute of the front-end data, determining the changed position information of the dragged front-end data;

[0007] Sending the front-end data sequence information and the change position information to the back-end server;

[0008] Receiving backend data sequence information fed back by the backend server, wherein the backend data sequence information is obtained by the backend server updating the backend data sequence according to the modified position information after determining that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information;

[0009] The front-end data is displayed according to the back-end data sequence information.

[0010] Optionally, determining the front-end data sequence information based on the location attribute of each front-end data includes:

[0011] According to the position attribute of each of the front-end data, a front-end data sequence array including the position attribute of each of the front-end data is determined, and the front-end data sequence array is used as the front-end data sequence information.

[0012] Optionally, the changed position information includes a source position and a target position;

[0013] The determining the changed position information of the dragged front-end data based on the drag instruction and the position attribute of the front-end data includes:

[0014] Determine the position attribute of the front-end data being dragged indicated by the drag instruction as the source position of the front-end data being dragged;

[0015] Determine the position attribute of the front-end data of the drag destination indicated by the drag instruction as the target position of the dragged front-end data;

[0016] The source position of the dragged front-end data and the target position of the dragged front-end data are used as the modified position information of the dragged front-end data.

[0017] According to a second aspect of the present disclosure, a drag sorting method includes:

[0018] Receive front-end data sequence information and changed position information of the dragged front-end data sent by the front-end, wherein the front-end data sequence is determined by the front-end based on the position attributes of each of the front-end data, and the changed position information of the dragged front-end data is determined by the front-end based on the drag instruction and position attributes of the front-end data;

[0019] If it is determined according to the front-end data sequence information that the front-end data sequence is consistent with the back-end data sequence, then the back-end data sequence is updated according to the modified position information to obtain the back-end data sequence information;

[0020] The back-end data sequence information is sent to each front-end.

[0021] Optionally, the method further includes:

[0022] If it is determined according to the front-end data sequence information that the front-end data sequence is inconsistent with the back-end data sequence, corresponding prompt information is sent to the front-end.

[0023] Optionally, the changed position information includes a source position and a target position;

[0024] The updating of the backend data sequence according to the modified position information to obtain backend data sequence information includes:

[0025] Modify the location attribute of the backend data at the source location to the location attribute of the backend data at the target location;

[0026] Modify the location attribute of the target backend data to the location attribute of the corresponding previous backend data, the target backend data includes the backend data of the target location and the backend data between the source location and the target location;

[0027] The backend data sequence information is determined according to the location attribute of each of the backend data.

[0028] According to a third aspect of the present disclosure, a dragging and sorting device includes:

[0029] A first information determination module, used to determine the front-end data sequence information based on the position attribute of each front-end data;

[0030] A second information determination module is used to determine the modified position information of the dragged front-end data based on the drag instruction and position attribute of the front-end data;

[0031] A front-end information sending module, used for sending the front-end data sequence information and the change position information to a back-end server;

[0032] A backend information receiving module, used for receiving backend data sequence information fed back by the backend server, wherein the backend data sequence information is obtained by the backend server updating the backend data sequence according to the change position information after determining that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information;

[0033] A display module is used to display the front-end data according to the back-end data sequence information.

[0034] According to a fourth aspect of the present disclosure, a dragging and sorting device includes:

[0035] A front-end information receiving module, used for receiving front-end data sequence information sent by the front-end and modified position information of the dragged front-end data, wherein the front-end data sequence is determined by the front-end based on the position attributes of each of the front-end data, and the modified position information of the dragged front-end data is determined by the front-end based on the drag instruction and position attributes of the front-end data;

[0036] A sequence updating module, for updating the backend data sequence according to the modified position information to obtain the backend data sequence information if it is determined that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information;

[0037] The back-end information sending module is used to send the back-end data sequence information to the front-end.

[0038] According to a fifth aspect of the present disclosure, an electronic device includes:

[0039] Processor; and

[0040] Memory for storing programs,

[0041] The program includes instructions, which, when executed by the processor, cause the processor to perform any of the methods described above.

[0042] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any of the methods described above.

[0043] One or more technical solutions provided in the embodiments of the present application, when the front-end data sequence is consistent with the back-end data sequence, the back-end server updates the back-end data sequence according to the changed position information of the front-end, and uses the updated back-end data sequence as the front-end data sequence of each front-end to display the front-end data, so that the front-end data sequence is displayed consistently, and the front-end will not cause different front-end users to see different data sequences due to multiple users dragging data at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0045] Figure 1 A flowchart of a drag sorting method according to an exemplary embodiment of the present disclosure is shown;

[0046] Figure 2 Another flow chart of a drag sorting method according to an exemplary embodiment of the present disclosure is shown;

[0047] Figure 3 A schematic block diagram of a drag-sorting device according to an exemplary embodiment of the present disclosure is shown;

[0048] Figure 4 Another schematic block diagram of a drag sorting device according to an exemplary embodiment of the present disclosure is shown;

[0049] Figure 5 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0050] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0051] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0052] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0053] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0054] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0055] Aspects of the present disclosure are described below with reference to the accompanying drawings.

[0056] See also Figure 1 , a drag sorting method, comprising:

[0057] S101, determining the sequence information of the front-end data based on the position attribute of each front-end data.

[0058] The drag sorting verification method of this embodiment can be executed at the front end.

[0059] In some embodiments, step S101 determines a front-end data sequence array including the location attributes of each front-end data according to the location attributes of each front-end data, and uses the front-end data sequence array as the front-end data sequence information. The front-end data is the data displayed on the user interface (UI). The back-end data is the data stored in the back-end server database. Generally, the back-end server transmits the back-end data to the front-end, and the data obtained by the front-end can be used as the front-end data.

[0060] Exemplarily, the front end obtains the back-end data list from the back-end server through an interface, uses the back-end data list as the front-end data list, sets the position attribute according to the data sequence of the front-end data list, and the position attribute can be represented by the position identifier POS. Exemplarily, the position attribute of the first (item) of data obtained is 1, and the position attributes of subsequent data are incremented by 1, and all position attributes are stored in the sequence array of the front-end data list. The sequence array can be represented by originList, and the sequence array originList is used as the front-end data sequence information. The position attribute can represent the position sorting order of the corresponding data. The position attribute can specifically use positive integer Arabic numerals, such as: 1, 2, 3, 4, 5, etc., and other forms of position data can also be used according to the actual usage scenario so that the position attribute can be used to determine the position sequence.

[0061] Exemplarily, the front end obtains a back-end data list from a back-end server through an interface, and the back-end data in the back-end data list has a position attribute, and the position attribute of the data in the back-end data list is stored in a sequence array of the front-end data list as the front-end data sequence information. The position attribute is stored in the sequence array of the front-end data list, so that the sequence array can be used as the front-end data sequence information, and it is convenient to use the sequence array to determine whether the sequence of the front-end and back-end data is consistent.

[0062] S102, determining the changed position information of the dragged front-end data based on the drag instruction and position attribute of the front-end data.

[0063] In some embodiments, the modified position information includes a source position and a target position. Step S102 determines the position attribute of the front-end data being dragged indicated by the drag instruction as the source position of the front-end data being dragged; determines the position attribute of the front-end data of the drag destination indicated by the drag instruction as the target position of the front-end data being dragged; uses the source position of the front-end data being dragged and the target position of the front-end data being dragged as the modified position information of the front-end data being dragged. It should be understood that the modified position information is also other information that can determine the source position and the target position. Using the source position and the target position as the modified position information facilitates the back-end to modify the source position, the target position, and the order of the data between the source position and the target position according to the modified position information.

[0064] Exemplarily, the user presses and holds the dragged front-end data (which may be a data block) to obtain the position attribute of the dragged front-end data as the source position of the dragged front-end data. For example, the position attribute of the dragged front-end data may be obtained and stored as the source position (such as stored as sourcePos to indicate the source position).

[0065] Exemplarily, the user drags the front-end data to the drag destination, and obtains the position attribute of the front-end data at the drag destination to serve as the target position of the front-end data to be dragged. For example, the position attribute of the front-end data at the drag destination can be obtained and stored as the target position (such as stored as targetPos to indicate the target position). It can be known that the position attribute of the front-end data at the drag destination is the position attribute of the target data block to which the drag is made. For example, if the user drags the front-end data a to the front-end data c, then the position attribute of the front-end data c is the position attribute of the front-end data at the destination.

[0066] S103, sending the front-end data sequence information and the modified position information to the back-end server.

[0067] In some implementations, the sequential array originList, source position sourcePos, and target position targetPos are sent to the backend port, wherein the sequential array originList is the front-end data sequence information, and the source position ourcePos and target position targetPos are the modified position information.

[0068] S104, receiving backend data sequence information fed back by the backend server, wherein the backend data sequence information is obtained by the backend server updating the backend data sequence according to the modified position information after determining that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information.

[0069] In this step, the back-end data sequence information is determined by the back-end server based on the front-end data sequence information and the change position information. Specifically, after the back-end server determines that the front-end data sequence is consistent with the back-end data sequence according to the front-end data sequence information, it updates the back-end data sequence according to the change position information to obtain the back-end data sequence information.

[0070] In some embodiments, if a prompt message fed back by the backend server is received, the prompt message is displayed to prompt the frontend user that the data has been updated. The prompt message is sent by the backend server after determining that the frontend data sequence is inconsistent with the backend data sequence according to the frontend data sequence information.

[0071] S105, displaying the front-end data according to the back-end data sequence information.

[0072] In this step, the data sequence of the front-end data is determined by the obtained back-end data sequence information, and the front-end data is displayed in the determined data sequence of the front-end data. Specifically, the data sequence indicated in the back-end data sequence information is used as the data sequence of the front-end data. The back-end data sequence information can be data (or data identifier) ​​and corresponding position attributes, and the position attributes are used to represent the order relationship of the corresponding data.

[0073] See also Figure 2 , a drag sorting method, comprising:

[0074] S201, receiving the front-end data sequence information and the changed position information of the dragged front-end data sent by the front-end; the front-end data sequence is determined by the front-end based on the position attributes of each of the front-end data, and the changed position information of the dragged front-end data is determined by the front-end based on the dragging instruction and position attributes of the front-end data.

[0075] This method is used for execution by the back-end server, the front-end data sequence information can be used to determine whether the front-end data sequence is consistent with the back-end, and the modified position information can be used to update the back-end data sequence. The method for determining the front-end data sequence and the modified position information can refer to the method for determining the front-end data sequence and the modified position information by the front-end, and there is no repeated description in this embodiment.

[0076] S202: If it is determined according to the front-end data sequence information that the front-end data sequence is consistent with the back-end data sequence, the back-end data sequence is updated according to the modified position information to obtain the back-end data sequence information.

[0077] In this step, the order of the back-end data is updated according to the changed position information only when the order of the front-end data is consistent with the order of the back-end data. It can be said that the front-end data is updated only when the order of the front-end data and the back-end data is consistent, so that the current front-end user will not have the actual result of the user's dragging inconsistent with the required result of the user's dragging due to other front-end users changing the data order.

[0078] In some implementations, if it is determined that the front-end data sequence is inconsistent with the back-end data sequence according to the front-end data sequence information, a corresponding prompt message is sent to the front-end to prompt that the front-end data has been updated, so that the front-end can know that the data has been updated and can drag the data after the data is updated.

[0079] In some embodiments, the modified position information includes a source position and a target position; step S202 modifies the position attribute of the backend data at the source position to the position attribute of the backend data at the target position; modifies the position attribute of the target backend data to the position attribute of the corresponding previous backend data, and the target backend data includes the backend data at the target position and the backend data between the source position and the target position; and determines the order information of the backend data according to the position attribute of each backend data. Here, the backend data relatively close to the source position in the two adjacent backend data is the previous backend data of the backend data relatively far away from the source position. It should be understood that the position attribute of each backend data here is the modified position attribute. Exemplarily, when the position attribute adopts a sequential positive integer, the backend server determines whether to move the drag data up or down. If it is to move up, the pos (data attribute) between the target data (including the target data) and the drag data (excluding the drag data) is sequentially increased by 1, and the pos of the drag data is changed to the pos of the target data; if it is to move down, the pos of the data between the target data (including the target data) and the drag data (excluding the drag data) is sequentially reduced by 1, and the pos of the drag data block is changed to the pos of the target data block.

[0080] Exemplary: Take the front-end data [data item 1 (pos=1), data item 2 (pos=2), data item 3 (pos=3), data item 4 (pos=4), data item 5 (pos=5)] as an example.

[0081] For example, user A, user B, and user C are online at the same time.

[0082] User A drags data item 5 to the position of data item 2. At this time, the original position sourcePos=5, the target position targetPos=2, and the front-end data sequence information originList is [1, 2, 3, 4, 5]. Since the order of the back-end data is also [1, 2, 3, 4, 5], it can be seen that the order of the front-end data is consistent with the order of the back-end data at this time. The back-end server modifies the order of the back-end data according to the original position sourcePos=5 and the target position targetPos=2. Specifically, the original back-end data order is [1, 2, 3, 4, 5]. The position attribute of the target back-end data is modified to the position attribute of the corresponding previous back-end data. At this time, the target back-end data includes the back-end data at the target position (data item 2) and the back-end data between the source position and the target position (data item 3, data item 4). The position attributes of the corresponding previous back-end data are pos=3, pos=4, and pos=5 respectively. At this time, pos=3 of data item 2, pos=4 of data item 3, and pos=5 of data item 4. Modify the position attribute (pos=5) of the backend data (data item 5) at the source position to the position attribute (pos=2) of the backend data (data item 2) at the target position, that is, pos=2 of data item 5. At this time, [data item 1 (pos=1), data item 2 (pos=3), data item 3 (pos=4), data item 4 (pos=5), data item 5 (pos=2)], and the order of the backend data is [1, 5, 2, 3, 4].

[0083] If user B's front-end has not updated the data, user B drags data item 1 to data item 4. At this time, the front-end data sequence information originList is still [1, 2, 3, 4, 5]. However, since the back-end server has received user A's operation first, the back-end data sequence has been updated to [1, 5, 2, 3, 4]. At this time, the front-end data sequence is inconsistent with the back-end data sequence. The back-end server sends a corresponding prompt message to the front-end to prompt that the back-end data has been updated. User B can perform the drag operation after the front-end data is updated.

[0084] S203, sending backend data sequence information to each front end.

[0085] In some embodiments, a drag sorting method includes:

[0086] The front end determines the front end data sequence information based on the location attributes of each front end data.

[0087] The front end determines the modified position information of the dragged front end data based on the drag instruction and position attribute of the front end data.

[0088] The front end sends the front end data sequence information and change location information to the back end server.

[0089] The back-end server receives the front-end data sequence information and the changed position information of the dragged front-end data sent by the front-end.

[0090] If the back-end server determines that the front-end data sequence is consistent with the back-end data sequence according to the front-end data sequence information, the back-end data sequence is updated according to the modified position information to obtain the back-end data sequence information.

[0091] The backend server sends backend data sequence information to each frontend

[0092] The front end receives the back end data sequence information fed back by the back end server, wherein the back end data sequence information is obtained by the back end server updating the back end data sequence according to the modified position information after determining that the front end data sequence is consistent with the back end data sequence according to the front end data sequence information.

[0093] The front end displays the front end data according to the back end data sequence information.

[0094] In the drag sorting verification method of this embodiment, the back-end server determines that the front-end data sequence is consistent with the back-end data sequence based on the front-end data sequence information fed back by the front-end, and then updates the sequence of each front-end data, which can prevent the situation where multiple users dragging data at the same time causes inconsistent front-end data of different users.

[0095] See also Figure 3 , a drag sorting device, comprising:

[0096] The first information determination module 301 is used to determine the front-end data sequence information based on the location attribute of each front-end data.

[0097] The second information determination module 302 is used to determine the modified position information of the dragged front-end data based on the drag instruction and position attribute of the front-end data.

[0098] The front-end information sending module 303 is used to send the front-end data sequence information and the modified position information to the back-end server.

[0099] The backend information receiving module 304 is used to receive the backend data sequence information fed back by the backend server, wherein the backend data sequence information is obtained by the backend server after determining that the frontend data sequence is consistent with the backend data sequence based on the frontend data sequence information, and then updating the backend data sequence according to the modified position information.

[0100] The display module 305 is used to display the front-end data according to the back-end data sequence information.

[0101] In some embodiments, the first information determination module 301 is used to determine the front-end data sequence information based on the position attributes of each front-end data, and is specifically used to: determine the front-end data sequence array containing the position attributes of each front-end data according to the position attributes of each front-end data, and use the front-end data sequence array as the front-end data sequence information.

[0102] In some embodiments, the modified position information includes a source position and a target position; the second information determination module 302 is used to determine the modified position information of the dragged front-end data based on the drag instruction and position attribute of the front-end data, and is specifically used to: determine the position attribute of the dragged front-end data indicated by the drag instruction as the source position of the dragged front-end data; determine the position attribute of the front-end data of the drag destination indicated by the drag instruction as the target position of the dragged front-end data; use the source position of the dragged front-end data and the target position of the dragged front-end data as the modified position information of the dragged front-end data.

[0103] See also Figure 4 , a drag sorting device, comprising:

[0104] The front-end information receiving module 401 is used to receive the front-end data sequence information sent by the front-end and the changed position information of the dragged front-end data. The front-end data sequence is determined by the front-end based on the position attributes of each front-end data, and the changed position information of the dragged front-end data is determined by the front-end based on the dragging instruction and position attributes of the front-end data.

[0105] The sequence updating module 402 is used to update the backend data sequence according to the modified position information to obtain the backend data sequence information if it is determined that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information.

[0106] The back-end information sending module 403 is used to send back-end data sequence information to the front-end.

[0107] In some implementations, the sequence updating module 402 is further configured to send corresponding prompt information to the front end if it is determined based on the front end data sequence information that the front end data sequence is inconsistent with the back end data sequence.

[0108] In some embodiments, the changed position information includes a source position and a target position; the sequence update module 402 is used to update the backend data sequence according to the changed position information to obtain the backend data sequence information, specifically for: modifying the position attribute of the backend data at the source position to the position attribute of the backend data at the target position; modifying the position attribute of the target backend data to the position attribute of the corresponding previous backend data, the target backend data includes the backend data at the target position and the backend data between the source position and the target position, and determining the backend data sequence information according to the position attributes of each backend data.

[0109] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.

[0110] Exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to execute the method according to an embodiment of the present disclosure.

[0111] The exemplary embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program is used to cause the computer to perform the method according to the embodiments of the present disclosure when executed by a processor of the computer.

[0112] refer to Figure 5 , a block diagram of an electronic device 500 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0113] like Figure 5 As shown, electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In RAM 503, various programs and data required for device operation can also be stored. Computing unit 501, ROM 502 and RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to bus 504.

[0114] A plurality of components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 may be any type of device capable of inputting information to the electronic device 500, and the input unit 506 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 507 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 508 may include, but is not limited to, a disk, an optical disk. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0115] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above. For example, in some embodiments, the method of the embodiment of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via ROM502 and / or the communication unit 509. In some embodiments, the computing unit 501 may be configured to perform the method of the embodiment of the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0116] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0117] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0118] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0119] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0120] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0121] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

Claims

1. A drag sorting method, characterized in that: include: Determine the sequence information of the front-end data based on the location attributes of each front-end data; Based on the dragging instruction and position attribute of the front-end data, determining the changed position information of the dragged front-end data; Sending the front-end data sequence information and the change position information to the back-end server; Receiving backend data sequence information fed back by the backend server, wherein the backend data sequence information is obtained by the backend server updating the backend data sequence according to the modified position information after determining that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information; The front-end data is displayed according to the back-end data sequence information.

2. The method according to claim 1, characterized in that The determining of the front-end data sequence information based on the position attribute of each front-end data includes: According to the position attribute of each of the front-end data, a front-end data sequence array including the position attribute of each of the front-end data is determined, and the front-end data sequence array is used as the front-end data sequence information.

3. The method according to claim 1, characterized in that: The modified position information includes a source position and a target position; The determining the changed position information of the dragged front-end data based on the drag instruction and the position attribute of the front-end data includes: Determine the position attribute of the front-end data being dragged indicated by the drag instruction as the source position of the front-end data being dragged; Determine the position attribute of the front-end data of the drag destination indicated by the drag instruction as the target position of the dragged front-end data; The source position of the dragged front-end data and the target position of the dragged front-end data are used as the modified position information of the dragged front-end data.

4. A drag sorting method, characterized in that: include: Receive front-end data sequence information and changed position information of the dragged front-end data sent by the front-end, wherein the front-end data sequence is determined by the front-end based on the position attributes of each of the front-end data, and the changed position information of the dragged front-end data is determined by the front-end based on the drag instruction and position attributes of the front-end data; If it is determined according to the front-end data sequence information that the front-end data sequence is consistent with the back-end data sequence, then the back-end data sequence is updated according to the modified position information to obtain the back-end data sequence information; The back-end data sequence information is sent to each front-end.

5. The method according to claim 4, characterized in that The method further comprises: If it is determined according to the front-end data sequence information that the front-end data sequence is inconsistent with the back-end data sequence, corresponding prompt information is sent to the front-end.

6. The method according to claim 4, characterized in that The modified position information includes a source position and a target position; The updating of the backend data sequence according to the modified position information to obtain backend data sequence information includes: Modify the location attribute of the backend data at the source location to the location attribute of the backend data at the target location; Modify the location attribute of the target backend data to the location attribute of the corresponding previous backend data, the target backend data includes the backend data of the target location and the backend data between the source location and the target location; The backend data sequence information is determined according to the location attribute of each of the backend data.

7. A dragging and sorting device, characterized in that: include: A first information determination module, used to determine the front-end data sequence information based on the position attribute of each front-end data; A second information determination module is used to determine the modified position information of the dragged front-end data based on the drag instruction and position attribute of the front-end data; A front-end information sending module, used for sending the front-end data sequence information and the change position information to a back-end server; A backend information receiving module, used for receiving backend data sequence information fed back by the backend server, wherein the backend data sequence information is obtained by the backend server updating the backend data sequence according to the change position information after determining that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information; A display module is used to display the front-end data according to the back-end data sequence information.

8. A dragging and sorting device, characterized in that: include: A front-end information receiving module, used for receiving front-end data sequence information sent by the front-end and modified position information of the dragged front-end data, wherein the front-end data sequence is determined by the front-end based on the position attributes of each of the front-end data, and the modified position information of the dragged front-end data is determined by the front-end based on the drag instruction and position attributes of the front-end data; A sequence updating module, for updating the backend data sequence according to the modified position information to obtain the backend data sequence information if it is determined that the frontend data sequence is consistent with the backend data sequence according to the frontend data sequence information; The back-end information sending module is used to send the back-end data sequence information to the front-end.

9. An electronic device, characterized in that: include: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.